File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -690,7 +690,7 @@ public static function outputLocalizationJS() {
690
690
'filters ' => self ::getEntityRefFilters (),
691
691
),
692
692
'ajaxPopupsEnabled ' => self ::singleton ()->ajaxPopupsEnabled ,
693
- 'allowAlertAutodismissal ' => Civi::settings ()->get ('allow_alert_autodismissal ' ),
693
+ 'allowAlertAutodismissal ' => ( bool ) Civi::settings ()->get ('allow_alert_autodismissal ' ),
694
694
);
695
695
print CRM_Core_Smarty::singleton ()->fetchWith ('CRM/common/l10n.js.tpl ' , $ vars );
696
696
CRM_Utils_System::civiExit ();
Original file line number Diff line number Diff line change 33
33
$ .datepicker ._defaults .dateFormat = CRM .config .dateInputFormat = { $config -> dateInputFormat |@json_encode} ;
34
34
CRM .config .timeIs24Hr = { if $config -> timeInputFormat eq 2} true { else } false { /if } ;
35
35
CRM .config .ajaxPopupsEnabled = { $ajaxPopupsEnabled |@json_encode} ;
36
- CRM .config .allowAlertAutodismissal = { $allowAlertAutodismissal } ;
36
+ CRM .config .allowAlertAutodismissal = { $allowAlertAutodismissal |@json_encode } ;
37
37
38
38
// Merge entityRef settings
39
39
CRM .config .entityRef = $ .extend ({ ldelim } { rdelim } , { $entityRef |@json_encode} , CRM .config .entityRef || { ldelim } { rdelim } );
You can’t perform that action at this time.
0 commit comments