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:
Antonio Fernandez 2024-05-28 19:40:15 -04:00 committed by GitHub
parent 5ca870a045
commit cabdda88b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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]);
}