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
This commit is contained in:
parent
dfa60ba49a
commit
2de1abb657
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue