Bug 27972

Summary: Error on the label creator home page
Product: Koha Reporter: sergeinik <sergeinik>
Component: ToolsAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart
Version: 20.11   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: This error appears when prompted to create stickers.

Description sergeinik 2021-03-17 10:38:11 UTC
Created attachment 118362 [details]
This error appears when prompted to create stickers.

No tool works after the last update.
Comment 1 Owen Leonard 2021-03-17 10:48:00 UTC
I can't reproduce this problem in version 20.11.03. If this happened after a recent upgrade I wonder if something happened that prevented the upgrade from completing properly?
Comment 2 sergeinik 2021-03-17 10:54:48 UTC
This problem appears when we switch the interface to Russian localization, in English localization everything works correctly. But I would like to have working tools in Russian localization, since not all of our employees speak English. The problem appeared after the last update.
Comment 3 Jonathan Druart 2021-03-17 11:28:48 UTC
Edit koha-tmpl/intranet-tmpl/prog/ru-RU/includes/tools-menu.inc

There is a missing [ at the beginning of line 8


  8 [% IF ( CAN_user_tools_manage_patron_lists || CAN_user_clubs || CAN_user_tools_moderate_comments || CAN_user_tools_import_patrons || CAN_user_tools_edit_notices || CAN_user_tools_edit_notice_status_triggers     || CAN_user_tools_label_creator || CAN_user_tools_delete_anonymize_patrons || CAN_user_tools_edit_patrons || CAN_user_tools_moderate_tags || ( CAN_user_tools_batch_upload_patron_images && Koha.Preference('pa    tronimages') ) ) %] <h5>Читатели и книговыдача</h5>
Comment 5 Jonathan Druart 2021-03-17 11:34:42 UTC
Another workaround is to apply this change and run the translate install command

@ misc/translator/po/ru-RU-staff-prog.po:64363 @ msgid ""
 "( CAN_user_tools_batch_upload_patron_images && Koha."
 "Preference('patronimages') ) ) %%] "
 msgstr ""
-"%% IF ( CAN_user_tools_manage_patron_lists || CAN_user_clubs || "
+"[%% IF ( CAN_user_tools_manage_patron_lists || CAN_user_clubs || "
 "CAN_user_tools_moderate_comments || CAN_user_tools_import_patrons || "
 "CAN_user_tools_edit_notices || CAN_user_tools_edit_notice_status_triggers || "
 "CAN_user_tools_label_creator || CAN_user_tools_delete_anonymize_patrons || "
Comment 6 sergeinik 2021-03-17 12:01:39 UTC
Thanks it worked