Update extension_edit.php

This commit is contained in:
FusionPBX
2019-01-29 13:22:17 -07:00
committed by GitHub
parent 6f8a116c82
commit 2de15017e6
+30 -22
View File
@@ -321,8 +321,12 @@
if (permission_exists('extension_accountcode')) { if (permission_exists('extension_accountcode')) {
$array["extensions"][$i]["accountcode"] = $accountcode; $array["extensions"][$i]["accountcode"] = $accountcode;
} }
$array["extensions"][$i]["effective_caller_id_name"] = $effective_caller_id_name; if (permission_exists("effective_caller_id_name")) {
$array["extensions"][$i]["effective_caller_id_number"] = $effective_caller_id_number; $array["extensions"][$i]["effective_caller_id_name"] = $effective_caller_id_name;
}
if (permission_exists("effective_caller_id_number")) {
$array["extensions"][$i]["effective_caller_id_number"] = $effective_caller_id_number;
}
if (permission_exists("outbound_caller_id_name")) { if (permission_exists("outbound_caller_id_name")) {
$array["extensions"][$i]["outbound_caller_id_name"] = $outbound_caller_id_name; $array["extensions"][$i]["outbound_caller_id_name"] = $outbound_caller_id_name;
} }
@@ -1136,27 +1140,31 @@
} }
} }
echo "<tr>\n"; if (permission_exists("effective_caller_id_name")) {
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<tr>\n";
echo " ".$text['label-effective_caller_id_name']."\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo "</td>\n"; echo " ".$text['label-effective_caller_id_name']."\n";
echo "<td class='vtable' align='left'>\n"; echo "</td>\n";
echo " <input class='formfld' type='text' name='effective_caller_id_name' maxlength='255' value=\"".escape($effective_caller_id_name)."\">\n"; echo "<td class='vtable' align='left'>\n";
echo "<br />\n"; echo " <input class='formfld' type='text' name='effective_caller_id_name' maxlength='255' value=\"".escape($effective_caller_id_name)."\">\n";
echo $text['description-effective_caller_id_name']."\n"; echo "<br />\n";
echo "</td>\n"; echo $text['description-effective_caller_id_name']."\n";
echo "</tr>\n"; echo "</td>\n";
echo "</tr>\n";
}
echo "<tr>\n"; if (permission_exists("effective_caller_id_number")) {
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<tr>\n";
echo " ".$text['label-effective_caller_id_number']."\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo "</td>\n"; echo " ".$text['label-effective_caller_id_number']."\n";
echo "<td class='vtable' align='left'>\n"; echo "</td>\n";
echo " <input class='formfld' type='text' name='effective_caller_id_number' min='0' step='1' maxlength='255' value=\"".escape($effective_caller_id_number)."\">\n"; echo "<td class='vtable' align='left'>\n";
echo "<br />\n"; echo " <input class='formfld' type='text' name='effective_caller_id_number' min='0' step='1' maxlength='255' value=\"".escape($effective_caller_id_number)."\">\n";
echo $text['description-effective_caller_id_number']."\n"; echo "<br />\n";
echo "</td>\n"; echo $text['description-effective_caller_id_number']."\n";
echo "</tr>\n"; echo "</td>\n";
echo "</tr>\n";
}
if (permission_exists("outbound_caller_id_name")) { if (permission_exists("outbound_caller_id_name")) {
echo "<tr>\n"; echo "<tr>\n";