Update call_center_queue_edit.php

This commit is contained in:
FusionPBX 2018-04-17 10:28:17 -06:00 committed by GitHub
parent e0b743a369
commit 26f89e3f61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 48 additions and 51 deletions

View File

@ -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";