[Legacy] Symfony Cache - Update Languages after save

This commit is contained in:
Jack Anderson 2023-11-13 15:11:13 +00:00
parent 133724db10
commit 0cb82300ea

View file

@ -86,6 +86,8 @@ class AdministrationController extends SugarController
$cfg->config['disabled_languages'] = implode(',', $disabled_langs);
// TODO: find way to enforce order
$cfg->handleOverride();
require_once "include/portability/Services/Cache/CacheManager.php";
(new CacheManager())->markAsNeedsUpdate('app-metadata-language-strings');
header("Location: index.php?module=Administration&action=Languages");
}