Update call_center_queue_edit.php
This commit is contained in:
parent
e0b743a369
commit
26f89e3f61
|
|
@ -567,7 +567,7 @@
|
|||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if (permission_exists('call_center_tier_view')) {
|
||||
if (permission_exists('call_center_tier_view') && is_array($agents) && count($agents) > 0) {
|
||||
echo "<tr>";
|
||||
echo " <td class='vncell' valign='top'>".$text['label-agents']."</td>";
|
||||
echo " <td class='vtable' align='left'>";
|
||||
|
|
@ -578,14 +578,13 @@
|
|||
echo " <td class='vtable' style='text-align: center;'>".$text['label-tier_position']."</td>\n";
|
||||
echo " <td></td>\n";
|
||||
echo " </tr>\n";
|
||||
if ($call_center_queue_uuid != null) {
|
||||
if (is_array($tiers)) {
|
||||
$x = 0;
|
||||
foreach($tiers as $field) {
|
||||
echo " <tr>\n";
|
||||
echo " <td class=''>";
|
||||
echo " <input type=\"hidden\" name=\"call_center_tiers[$x][call_center_queue_uuid]\" value=\"".$field['call_center_queue_uuid']."\">\n";
|
||||
echo " <input type=\"hidden\" name=\"call_center_tiers[$x][call_center_tier_uuid]\" value=\"".$field['call_center_tier_uuid']."\">\n";
|
||||
if (strlen($field['call_center_tier_uuid']) > 0) {
|
||||
echo " <input name='call_center_tiers[".$x."][call_center_tier_uuid]' type='hidden' value=\"".$field['call_center_tier_uuid']."\">\n";
|
||||
}
|
||||
echo " <select name=\"call_center_tiers[$x][call_center_agent_uuid]\" class=\"formfld\">\n";
|
||||
echo " <option value=\"\"></option>\n";
|
||||
foreach($agents as $row) {
|
||||
|
|
@ -628,8 +627,6 @@
|
|||
$x++;
|
||||
}
|
||||
unset ($prep_statement, $sql, $tiers);
|
||||
}
|
||||
}
|
||||
echo " </table>\n";
|
||||
echo " <br>\n";
|
||||
echo " ".$text['description-tiers']."\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue