mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
[Legacy] Add null check to SavedSearch bean
- Add check to fill_in_additional_list_fields -- Check if search_module is defined in contents otherwise set default
This commit is contained in:
parent
bead68312e
commit
c4fb0bacf8
1 changed files with 2 additions and 1 deletions
|
@ -480,7 +480,8 @@ class SavedSearch extends SugarBean
|
|||
{
|
||||
global $app_list_strings;
|
||||
// Fill in the assigned_user_name
|
||||
$this->search_module = $app_list_strings['moduleList'][$this->contents['search_module']];
|
||||
$searchModule = $this->contents['search_module'] ?? '';
|
||||
$this->search_module = $app_list_strings['moduleList'][$searchModule] ?? '';
|
||||
$this->assigned_user_name = get_assigned_user_name($this->assigned_user_id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue