Skip to content

Commit a9fb612

Browse files
committed
Accessibility civicrm#9: Regression - js error due to alertDismissal setting fixed.
1 parent d19abfd commit a9fb612

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CRM/Core/Resources.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ public static function outputLocalizationJS() {
690690
'filters' => self::getEntityRefFilters(),
691691
),
692692
'ajaxPopupsEnabled' => self::singleton()->ajaxPopupsEnabled,
693-
'allowAlertAutodismissal' => Civi::settings()->get('allow_alert_autodismissal'),
693+
'allowAlertAutodismissal' => (bool) Civi::settings()->get('allow_alert_autodismissal'),
694694
);
695695
print CRM_Core_Smarty::singleton()->fetchWith('CRM/common/l10n.js.tpl', $vars);
696696
CRM_Utils_System::civiExit();

templates/CRM/common/l10n.js.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
$.datepicker._defaults.dateFormat = CRM.config.dateInputFormat = {$config->dateInputFormat|@json_encode};
3434
CRM.config.timeIs24Hr = {if $config->timeInputFormat eq 2}true{else}false{/if};
3535
CRM.config.ajaxPopupsEnabled = {$ajaxPopupsEnabled|@json_encode};
36-
CRM.config.allowAlertAutodismissal = {$allowAlertAutodismissal};
36+
CRM.config.allowAlertAutodismissal = {$allowAlertAutodismissal|@json_encode};
3737
3838
// Merge entityRef settings
3939
CRM.config.entityRef = $.extend({ldelim}{rdelim}, {$entityRef|@json_encode}, CRM.config.entityRef || {ldelim}{rdelim});

0 commit comments

Comments
 (0)