[Koha-bugs] [Bug 24661] Inclusion of locale-related javascript files is broken
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Apr 3 12:16:45 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24661
--- Comment #23 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
There is a variable name collision with "lang" in some scripts:
It's passed to all templates by C4::Templates to pass the language of the UI
84 $self->lang($lang);
And, for instance, in controller like members/memberentry.pl
790 $template->param(%data);
I know what we do in memberentry.pl is ugly, but fixing it will require some
deep change it seems.
Maybe the easiest would be to rename the "global" $lang with something like
$ui_lang?
The error in the log is:
File not found : default/js/locale_data.js at
/kohadevbox/koha/Koha/Template/Plugin/Asset.pm line 84.
because borrowers.lang is "default" by default.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list