Skip to content

Commit 06abb64

Browse files
committed
Fix portal UI
Portals config is set in JSON by default but Tidbit overrides it by base64 encoded value. Possibly related issue: BR-10909
1 parent a379f28 commit 06abb64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Helper/ModuleTabs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static function updateEnabledTabs(\DBManager $db, $modules, $sugarModuleL
7070
}
7171

7272
$enabledModules = $db->quoted(base64_encode(serialize($moduleTabs)));
73-
$db->query("UPDATE config SET value={$enabledModules} WHERE category='MySettings' AND name='tab'");
73+
$db->query("UPDATE config SET value={$enabledModules} WHERE category='MySettings' AND name='tab' AND NOT (platform='portal' AND platform IS NOT NULL)");
7474

7575
// Clear sugar cache
7676
sugar_cache_clear('admin_settings_cache');

0 commit comments

Comments
 (0)