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:
Joseph 2022-07-19 11:48:04 -04:00 committed by GitHub
parent dfa60ba49a
commit 2de1abb657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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