Bug 30569 - mana_enabled gets set incorrectly
Summary: mana_enabled gets set incorrectly
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Mana-kb (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-20 09:44 UTC by Sebastian Gamero
Modified: 2023-06-08 22:26 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 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.