From 6436574f81bbb4872dac95f17ad7c577a53e3a35 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 31 Jan 2019 14:30:43 -0500 Subject: [PATCH] l10n.js - Reload when logging in as new user --- CRM/Core/Resources.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Resources.php b/CRM/Core/Resources.php index 600bb03e3a..21401e24e6 100644 --- a/CRM/Core/Resources.php +++ b/CRM/Core/Resources.php @@ -603,7 +603,11 @@ class CRM_Core_Resources { $tsLocale = CRM_Core_I18n::getLocale(); // Dynamic localization script - $this->addScriptUrl(CRM_Utils_System::url('civicrm/ajax/l10n-js/' . $tsLocale, array('r' => $this->getCacheCode())), $jsWeight++, $region); + $args = [ + 'r' => $this->getCacheCode(), + 'cid' => CRM_Core_Session::getLoggedInContactID(), + ]; + $this->addScriptUrl(CRM_Utils_System::url('civicrm/ajax/l10n-js/' . $tsLocale, $args, FALSE, NULL, FALSE), $jsWeight++, $region); // Add global settings $settings = array( -- 2.25.1