Fix recording setting in extension (#2246)

* Fix recording setting in extension

If as a superadmin you add recording to an extension, then the admin for the domain (ie member of group: admin) goes in and edits the extension, the recording property will be set to false.

* Update extension_edit.php
This commit is contained in:
DigiDaz 2016-12-09 23:26:38 +00:00 committed by FusionPBX
parent 2a8b1ff602
commit 48e745e6d6
1 changed files with 3 additions and 1 deletions

View File

@ -675,7 +675,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
$sql .= "call_group = '$call_group', ";
$sql .= "call_screen_enabled = '$call_screen_enabled', ";
$sql .= "user_record = '$user_record', ";
if (permission_exists('extension_user_record')) {
$sql .= "user_record = '$user_record', ";
}
$sql .= "hold_music = '$hold_music', ";
$sql .= "auth_acl = '$auth_acl', ";
$sql .= "cidr = '$cidr', ";