voicemail messages function is called twice. second call removes list (#7078)

When voicemail is called the first time, it correctly displays the list of voicemail messages. When it is called a second time the function returns an empty array and gives an empty display. This removes the second call to method 'messages' in 'voicemail' object.

authored-by: Tim Fry <tim@fusionpbx.com>
This commit is contained in:
frytimo 2024-07-31 15:26:26 -03:00 committed by GitHub
parent 4b04d701ec
commit cb94f2c02b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -285,7 +285,6 @@
$vm->order_by = $order_by;
$vm->order = $order;
$vm->offset = $offset;
$voicemails = $vm->messages();
//count messages and detect if any transcriptions available
$new_messages = $num_rows = 0;