Bug 23703 - Updating translation bricks creating subscriptions
Summary: Updating translation bricks creating subscriptions
Status: RESOLVED DUPLICATE of bug 23713
Alias: None
Product: Koha
Classification: Unclassified
Component: I18N/L10N (show other bugs)
Version: 19.05
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-30 15:24 UTC by Bohdan
Modified: 2019-10-04 15:07 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***