Fix for the device template

If the device vendor matches then use the alternate device template
This commit is contained in:
FusionPBX 2024-11-01 12:33:34 -06:00 committed by GitHub
parent fab9a6bbc9
commit 175e88e15a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -590,13 +590,17 @@
if (is_array($row) && sizeof($row) != 0) {
if ($row["device_enabled"] == "true") {
$device_label = $row["device_label"];
//if the device vendor match then use the alternate device template
if ($device_vendor == $row["device_vendor"]) {
$device_template = $row["device_template"];
}
$device_profile_uuid = $row["device_profile_uuid"];
$device_firmware_version = $row["device_firmware_version"];
$device_user_uuid = $row["device_user_uuid"];
$device_location = strtolower($row["device_location"]);
//keep the original device_vendor
$device_enabled = $row["device_enabled"];
//keep the original device_template
$device_description = $row["device_description"];
}
}