diff --git a/app/call_centers/call_center_agent_edit.php b/app/call_centers/call_center_agent_edit.php
index 7a7d9e2194..7f605298dd 100644
--- a/app/call_centers/call_center_agent_edit.php
+++ b/app/call_centers/call_center_agent_edit.php
@@ -111,7 +111,7 @@
$msg = '';
//if (strlen($call_center_agent_uuid) == 0) { $msg .= $text['message-required']." ".$text['label-call_center_agent_uuid']."
\n"; }
//if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']." ".$text['label-domain_uuid']."
\n"; }
- if (strlen($user_uuid) == 0) { $msg .= $text['message-required']." ".$text['label-user_uuid']."
\n"; }
+ //if (strlen($user_uuid) == 0) { $msg .= $text['message-required']." ".$text['label-user_uuid']."
\n"; }
if (strlen($agent_name) == 0) { $msg .= $text['message-required']." ".$text['label-agent_name']."
\n"; }
if (strlen($agent_type) == 0) { $msg .= $text['message-required']." ".$text['label-agent_type']."
\n"; }
if (strlen($agent_call_timeout) == 0) { $msg .= $text['message-required']." ".$text['label-agent_call_timeout']."
\n"; }
@@ -225,7 +225,9 @@
//prepare the array
$array['call_center_agents'][] = $_POST;
$array['users'][0]['domain_uuid'] = $_SESSION['domain_uuid'];
- $array['users'][0]['user_uuid'] = $user_uuid;
+ if (is_uuid($user_uuid)) {
+ $array['users'][0]['user_uuid'] = $user_uuid;
+ }
$array['users'][0]['user_status'] = $agent_status;
//save to the data
@@ -411,25 +413,27 @@
echo "\n";
echo "\n";
- echo "