Update call_center_agent_edit.php
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2008-2019
|
Portions created by the Initial Developer are Copyright (C) 2008-2020
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
@@ -152,6 +152,12 @@
|
|||||||
$users = $database->select($sql, $parameters, 'all');
|
$users = $database->select($sql, $parameters, 'all');
|
||||||
unset($sql, $parameters);
|
unset($sql, $parameters);
|
||||||
|
|
||||||
|
//change the contact string to loopback - Not recommended added for backwards comptability causes multiple problems
|
||||||
|
if ($_SESSION['call_center']['agent_contact_method']['text'] == 'loopback') {
|
||||||
|
$agent_contact = str_replace("user/", "loopback/", $agent_contact);
|
||||||
|
$agent_contact = str_replace("@", "/", $agent_contact);
|
||||||
|
}
|
||||||
|
|
||||||
//prepare the array
|
//prepare the array
|
||||||
$array['call_center_agents'][0]['domain_uuid'] = $_SESSION['domain_uuid'];
|
$array['call_center_agents'][0]['domain_uuid'] = $_SESSION['domain_uuid'];
|
||||||
$array['call_center_agents'][0]['call_center_agent_uuid'] = $call_center_agent_uuid;
|
$array['call_center_agents'][0]['call_center_agent_uuid'] = $call_center_agent_uuid;
|
||||||
@@ -599,4 +605,4 @@
|
|||||||
//include the footer
|
//include the footer
|
||||||
require_once "resources/footer.php";
|
require_once "resources/footer.php";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user