diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 69c32bf682..7f396c5b24 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -54,7 +54,7 @@ else { $extension = str_replace(' ','-',check_str($_POST["extension"])); $number_alias = check_str($_POST["number_alias"]); $password = check_str($_POST["password"]); - $accountcode = check_str($_POST["accountcode"]); + $accountcode = check_str((if_group("superadmin")?$_POST["accountcode"]:$_SESSION['domain_name'])); $effective_caller_id_name = check_str($_POST["effective_caller_id_name"]); $effective_caller_id_number = check_str($_POST["effective_caller_id_number"]); $outbound_caller_id_name = check_str($_POST["outbound_caller_id_name"]); @@ -949,16 +949,18 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; } - echo "