Fix importing extensions (#6985)
This commit will lower the case on all boolean values since if you enter the value as not all lower-case the value will be invalid.
This commit is contained in:
parent
5ca870a045
commit
cabdda88b3
|
|
@ -289,8 +289,8 @@
|
|||
$result[$key] = preg_replace('{\D}', '', $result[$key]);
|
||||
}
|
||||
|
||||
//set the extension enabled to lower case
|
||||
if ($field_name == 'enabled') {
|
||||
//set various fields to lower case
|
||||
if (in_array($field_name, array('enabled','directory_visible','directory_exten_visible','call_screen_enabled','user_record'))) {
|
||||
$result[$key] = strtolower($result[$key]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue