When using natural_sort cast to text

This commit is contained in:
FusionPBX 2024-01-10 12:22:36 -07:00 committed by GitHub
parent d428119f4f
commit 530967f28a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
$apps[$x]['destinations'][$y]['name'] = "voicemails";
$apps[$x]['destinations'][$y]['sql'] = "select voicemail_uuid, voicemail_uuid as uuid, voicemail_id as destination, '*99' || voicemail_id as extension, voicemail_description as description, voicemail_description as name from v_voicemails";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and voicemail_enabled = 'true' ";
$apps[$x]['destinations'][$y]['order_by'] = "natural_sort(voicemail_id) asc ";
$apps[$x]['destinations'][$y]['order_by'] = "natural_sort(voicemail_id::text) asc ";
$apps[$x]['destinations'][$y]['field']['uuid'] = "voicemail_uuid";
$apps[$x]['destinations'][$y]['field']['voicemail_uuid'] = "voicemail_uuid";
$apps[$x]['destinations'][$y]['field']['destination'] = "voicemail_id";