mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update device_edit.php
Show the selected user when editing a device.
This commit is contained in:
@@ -1355,7 +1355,8 @@ require_once "resources/require.php";
|
||||
echo " <select name=\"user_uuid\" class='formfld' style='width: auto;'>\n";
|
||||
echo " <option value=\"\"></option>\n";
|
||||
foreach($users as $field) {
|
||||
echo " <option value='".$field['user_uuid']."'>".$field['username']."</option>\n";
|
||||
if ($field['user_uuid'] == $user_uuid) { $selected = "selected='selected'"; } else { $selected = ''; }
|
||||
echo " <option value='".$field['user_uuid']."' $selected>".$field['username']."</option>\n";
|
||||
}
|
||||
echo " </select>";
|
||||
unset($users);
|
||||
|
||||
Reference in New Issue
Block a user