Change alternate greeting id data type to text (#7692)

Using text allows the + and leading 0
This commit is contained in:
Alex
2026-01-12 09:32:33 -07:00
committed by GitHub
parent 58df61a0b0
commit 1e43abbc51
2 changed files with 2 additions and 2 deletions

View File

@@ -450,7 +450,7 @@
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select the greeting id.";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_alternate_greet_id";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Used to provide an alternate id for the voicemail announcement.";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_recording_instructions";

View File

@@ -167,7 +167,7 @@
$array['voicemails'][0]['voicemail_id'] = $voicemail_id;
$array['voicemails'][0]['voicemail_password'] = $voicemail_password;
$array['voicemails'][0]['greeting_id'] = $greeting_id != '' ? $greeting_id : null;
$array['voicemails'][0]['voicemail_alternate_greet_id'] = $voicemail_alternate_greet_id != '' ? $voicemail_alternate_greet_id : null;
$array['voicemails'][0]['voicemail_alternate_greet_id'] = $voicemail_alternate_greet_id != '' ? preg_replace('/[^0-9+]/', '', $voicemail_alternate_greet_id) : null;
$array['voicemails'][0]['voicemail_mail_to'] = $voicemail_mail_to;
$array['voicemails'][0]['voicemail_sms_to'] = $voicemail_sms_to;
$array['voicemails'][0]['voicemail_transcription_enabled'] = $voicemail_transcription_enabled;