Bug 30569

Summary: mana_enabled gets set incorrectly
Product: Koha Reporter: Sebastian Gamero <sebastian>
Component: Mana-kbAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P5 - low CC: alex.arnaud
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30991
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Sebastian Gamero 2022-04-20 09:44:26 UTC
In
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/sv-SE/modules/serials/subscription-add.tt:509

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

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

like it is in the english version.
Comment 1 Katrin Fischer 2022-06-25 16:02:11 UTC
This has already been fixed in the most current versions:

        [%- IF (Koha.Preference('Mana') == 1 && mana_url) -%]
            var mana_enabled = 1;
        [%- ELSE -%]
            var mana_enabled = 0;
        [%- END -%]
        var BOOKSELLER_IDS = [% To.json( bookseller_ids ) || '[]' | html %];


I am closing as RESOLVED FIXED. 

If you are using a maintained version (21.05 and above) and still have this issue, please reopen.