From 9441e638f673d4b1976f80a25a023a21efb58989 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 16 Aug 2019 14:24:58 -0600 Subject: [PATCH] Update device_profile_edit.php --- app/devices/device_profile_edit.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/devices/device_profile_edit.php b/app/devices/device_profile_edit.php index 15a6883cc9..6d17973f9b 100644 --- a/app/devices/device_profile_edit.php +++ b/app/devices/device_profile_edit.php @@ -63,6 +63,14 @@ $device_profile_enabled = $_POST["device_profile_enabled"]; $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 $msg = ''; if (strlen($device_profile_name) == 0) { $msg .= $text['message-required']." ".$text['label-device_profile_name']."
\n"; }