Bug 23703

Summary: Updating translation bricks creating subscriptions
Product: Koha Reporter: Bohdan <b.pastern4k>
Component: I18N/L10NAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: f.demians
Version: 19.05   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Bohdan 2019-09-30 15:24:53 UTC
Greetings.
Since 19.05 i have encountered the following bug in ukrainian version - when i try to create a new subscription console shows me these errors:

1.Uncaught SyntaxError: Unexpected token ';'.
2.Uncaught ReferenceError: irregularity is not defined.

First error is the problem.
This leads to line in file subscription-add.pl
     var mana_enabled = ;

There is an error in code in subscription-add.tt file in uk-UA version

var mana_enabled = [% IF (Koha.Preference('Mana') == 1 && mana_url) %]1[% ELSE %][% END %];

The ZERO is missing.
The code should be like this.

var mana_enabled = [% IF (Koha.Preference('Mana') == 1 && mana_url) %]1[% ELSE %]0[% END %];

If I enter it everything works well as before.
However each time after update the ZERO disappears again.
How can this be fixed?
Comment 1 Owen Leonard 2019-10-04 15:07:27 UTC Comment hidden (obsolete)
Comment 2 Owen Leonard 2019-10-04 15:07:55 UTC

*** This bug has been marked as a duplicate of bug 23713 ***