From 7205c76fba10850b6761c40474c6699dbde79a47 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 6 Jun 2022 17:52:34 -0600 Subject: [PATCH] Force the value to lower case for voicemail_local_after_email, voicemail_tutorial, and voicemail_enabled. --- app/voicemails/voicemail_imports.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/voicemails/voicemail_imports.php b/app/voicemails/voicemail_imports.php index cf2ddf8c99..66c88ebf34 100644 --- a/app/voicemails/voicemail_imports.php +++ b/app/voicemails/voicemail_imports.php @@ -280,7 +280,13 @@ if (strlen($table_name) > 0) { if (strlen($parent) == 0) { $array[$table_name][$row_id]['domain_uuid'] = $domain_uuid; - $array[$table_name][$row_id][$field_name] = $result[$key]; + if ($field_name == 'voicemail_local_after_email' || $field_name == 'voicemail_tutorial' || $field_name == 'voicemail_enabled') { + $field_value = strtolower($result[$key]); + } + else { + $field_value = $result[$key]; + } + $array[$table_name][$row_id][$field_name] = $field_value; } else { $array[$parent][$row_id][$table_name][$y]['domain_uuid'] = $domain_uuid;