mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
Fix #154 - [Legacy] MySQL Error 1054: missing config.id and config.deleted columns
This commit is contained in:
parent
1f949f1ac2
commit
91b2a8a188
1 changed files with 3 additions and 1 deletions
|
@ -130,7 +130,9 @@ class FavoritesManagerPort
|
|||
$db = DBManagerFactory::getInstance();
|
||||
$userId = $current_user->id ?? null;
|
||||
|
||||
if (empty($db) || empty($userId) || empty($module)) {
|
||||
$excludedModules = ['Home', 'Administration', 'ModuleBuilder'];
|
||||
|
||||
if (empty($db) || empty($userId) || empty($module) || in_array($module, $excludedModules)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue