From 2de1abb65704cadbe57ecc055398b29a20b5a7da Mon Sep 17 00:00:00 2001 From: Joseph <71848841+junction1153@users.noreply.github.com> Date: Tue, 19 Jul 2022 11:48:04 -0400 Subject: [PATCH] fix issue with device vendors (#6340) If mac address and template already exists in Devices page and you attempt to associate the mac address with the extension from the extensions page, the "vendor" is removed from the device, thus causing provisioning not to look at the device profiles settings of the mac address --- app/devices/device_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index f8f3b750d7..4fbbc5e25b 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -527,7 +527,7 @@ //use the mac address to get the vendor if (strlen($device_vendor) == 0) { $template_array = explode("/", $device_template); - $device_vendor = $template_array[0]; + $device_vendor = device::get_vendor($device_mac_address); } //set the sub array index