Update device_profile_edit.php
This commit is contained in:
parent
30933e2761
commit
13d88862dd
|
|
@ -63,6 +63,14 @@
|
||||||
$device_profile_enabled = $_POST["device_profile_enabled"];
|
$device_profile_enabled = $_POST["device_profile_enabled"];
|
||||||
$device_profile_description = $_POST["device_profile_description"];
|
$device_profile_description = $_POST["device_profile_description"];
|
||||||
|
|
||||||
|
//set the domain_uuid for users that do not have the permission
|
||||||
|
if (permission_exists('device_profile_domain')) {
|
||||||
|
$domain_uuid = $_POST["domain_uuid"];
|
||||||
|
}
|
||||||
|
else if ($action == 'add') {
|
||||||
|
$domain_uuid = $_SESSION['domain_uuid'];
|
||||||
|
}
|
||||||
|
|
||||||
//check for all required data
|
//check for all required data
|
||||||
$msg = '';
|
$msg = '';
|
||||||
if (strlen($device_profile_name) == 0) { $msg .= $text['message-required']." ".$text['label-device_profile_name']."<br>\n"; }
|
if (strlen($device_profile_name) == 0) { $msg .= $text['message-required']." ".$text['label-device_profile_name']."<br>\n"; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue