diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/branch-selector.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/branch-selector.inc index e6dfdb7e44..b91ecc2b6f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/branch-selector.inc +++ b/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

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt index 681bddbbdd..eb0069eca1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt +++ b/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 %]