List Views: Minor adjustments to code.

This commit is contained in:
Nate
2019-11-30 14:18:00 -07:00
parent 34adf14ed9
commit aa593c03fc
28 changed files with 102 additions and 129 deletions
+3 -4
View File
@@ -50,19 +50,18 @@
$call_center_agents = $_POST['call_center_agents'];
}
//process posted data by action
//process the http post data by action
if ($action != '' && is_array($call_center_agents) && @sizeof($call_center_agents) != 0) {
$obj = new call_center;
switch ($action) {
case 'copy':
if (permission_exists('call_center_agent_add')) {
$obj = new call_center;
$obj->copy_agents($call_center_agents);
}
break;
case 'delete':
if (permission_exists('call_center_agent_delete')) {
$obj = new call_center;
$obj->delete_agents($call_center_agents);
}
break;
+3 -4
View File
@@ -50,19 +50,18 @@
$call_center_queues = $_POST['call_center_queues'];
}
//process posted data by action
//process the http post data by action
if ($action != '' && is_array($call_center_queues) && @sizeof($call_center_queues) != 0) {
$obj = new call_center;
switch ($action) {
case 'copy':
if (permission_exists('call_center_queue_add')) {
$obj = new call_center;
$obj->copy_queues($call_center_queues);
}
break;
case 'delete':
if (permission_exists('call_center_queue_delete')) {
$obj = new call_center;
$obj->delete_queues($call_center_queues);
}
break;