From f606c6ff3b2e8a2ab0d073cb307abee3f83f5b6e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 10 Sep 2021 12:33:02 -0600 Subject: [PATCH] Add line_keys to the deivice_lines array needed for Polycom. --- app/provision/resources/classes/provision.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/provision/resources/classes/provision.php b/app/provision/resources/classes/provision.php index 673079cacc..d629f6ac2f 100644 --- a/app/provision/resources/classes/provision.php +++ b/app/provision/resources/classes/provision.php @@ -719,8 +719,8 @@ include "root.php"; $parameters['device_profile_uuid'] = $device_profile_uuid; $database = new database; $keys = $database->select($sql, $parameters, 'all'); - //add the profile keys to the device keys array + //add the profile keys to the device keys array if (is_array($keys) && sizeof($keys) != 0) { foreach($keys as $row) { //set the variables @@ -780,6 +780,12 @@ include "root.php"; //set the variables $id = $row['device_key_id']; $category = $row['device_key_category']; + $device_key_line = $row['device_key_line']; + + //add line_keys to the polycom array + if ($row['device_key_vendor'] == 'polycom' && $row['device_key_type'] == 'line') { + $device_lines[$device_key_line]['line_keys'] = $row['device_key_value']; + } //build the device keys array $device_keys[$category][$id] = $row;