@@ -, +, @@ loop in translation for branch-selector.inc - Apply patch - In Staff client, go to Home > Tools > Export data - Verify that library selection behaves as before - Bonus test: Create a "language" aa-AA (perl translate create aa-AA from folder misc/translator, verify that lines mentioned above do no longer appear in aa-AA-staff-prog.po - Run QA tools (newest version with test for newlines in tt directives) --- koha-tmpl/intranet-tmpl/prog/en/includes/branch-selector.inc | 10 +++++----- koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/branch-selector.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/branch-selector.inc @@ -1,10 +1,10 @@ [%# First check to see if we have anything selected, otherwise we select all %] [% selectall = 1 %] -[% FOREACH branch IN branches; - IF branch.selected; - selectall = 0; - END; -END %] +[% FOREACH branch IN branches %] + [% IF branch.selected %] + [% selectall = 0 %] + [% END %] +[% END %]

Select all | Clear all

--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt @@ -97,8 +97,7 @@ $(document).ready(function() {
  • - [% INCLUDE 'branch-selector.inc' - branches = libraries %] + [% INCLUDE 'branch-selector.inc' branches = libraries %]
  • --