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 %]