Update extension_edit.php

This commit is contained in:
FusionPBX 2020-02-17 15:06:00 -07:00 committed by GitHub
parent 531655c8d8
commit 058d8c1195
1 changed files with 3 additions and 6 deletions

View File

@ -316,11 +316,6 @@
} }
} }
//enabled
if (!permission_exists('extension_enabled')) {
$enabled = "true";
}
//generate a password //generate a password
if ($action == "add" && strlen($password) == 0) { if ($action == "add" && strlen($password) == 0) {
$password = generate_password(); $password = generate_password();
@ -407,7 +402,9 @@
if (permission_exists('extension_dial_string')) { if (permission_exists('extension_dial_string')) {
$array["extensions"][$i]["dial_string"] = $dial_string; $array["extensions"][$i]["dial_string"] = $dial_string;
} }
if (permission_exists('extension_enabled')) {
$array["extensions"][$i]["enabled"] = $enabled; $array["extensions"][$i]["enabled"] = $enabled;
}
$array["extensions"][$i]["description"] = $description; $array["extensions"][$i]["description"] = $description;
} }