mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
[directory] Use effective_caller_id_name when directory_first_name blank (#6193)
The database contains directory_first_name entries that are blank, and the table does not populate properly. Use effective_caller_id_name when a nil or blank entry is found.
This commit is contained in:
@@ -393,7 +393,7 @@
|
||||
--directory[x] = row;
|
||||
--variables
|
||||
effective_caller_id_name = row.effective_caller_id_name;
|
||||
if (row.directory_first_name) then
|
||||
if (row.directory_first_name ~= nil) and (row.directory_first_name ~= "") then
|
||||
first_name = row.directory_first_name;
|
||||
last_name = row.directory_last_name;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user