From 5d41fd01df9bfebb93a736a423d7843f249e85c2 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 25 May 2022 12:21:02 -0600 Subject: [PATCH] Need to allow ability to clear the value. --- app/devices/device_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index 9918c29818..eec9127ec2 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -261,8 +261,8 @@ if (permission_exists('device_location')) { $array['devices'][0]['device_location'] = $device_location; } - if (permission_exists('device_alternate') && is_uuid($device_uuid_alternate)) { - $array['devices'][0]['device_uuid_alternate'] = $device_uuid_alternate; + if (permission_exists('device_alternate')) { + $array['devices'][0]['device_uuid_alternate'] = is_uuid($device_uuid_alternate) ? $device_uuid_alternate : null; } if (permission_exists('device_model')) { $array['devices'][0]['device_model'] = $device_model;