Device - Edit: Set device key vendor on device key type change.

This commit is contained in:
fusionate 2023-11-24 21:33:41 +00:00
parent 06aba14a59
commit d9bf2e3c7b
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1689,7 +1689,7 @@
echo "<input type='hidden' id='key_vendor_".$x."' name='device_keys[".$x."][device_key_vendor]' value=\"".$device_key_vendor."\" />\n";
echo "<select class='formfld' name='device_keys[".$x."][device_key_type]' id='key_type_".$x."'>\n";
echo "<select class='formfld' name='device_keys[".$x."][device_key_type]' id='key_type_".$x."' ".(empty($device_key_vendor) ? "onchange=\"document.getElementById('key_vendor_".$x."').value = this.options[this.selectedIndex].getAttribute('vendor');\"" : null).">\n";
echo " <option value=''></option>\n";
$previous_vendor = '';
$i=0;