@@ -, +, @@ --- admin/branches.pl | 6 +++--- .../prog/en/modules/admin/branches.tt | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) --- a/admin/branches.pl +++ a/admin/branches.pl @@ -254,15 +254,15 @@ sub editbranchform { # # We export a "categoryloop" array to the template, each element of which # contains separate 'categoryname', 'categorycode', 'codedescription', and - # 'checked' fields. The $checked field is either '' or 'checked="checked"' + # 'checked' fields. The $checked field is either empty or 1' my $catinfo = GetBranchCategory(); my @categoryloop = (); foreach my $cat (@$catinfo) { - my $checked = ""; + my $checked; my $tmp = quotemeta( $cat->{'categorycode'} ); if ( grep { /^$tmp$/ } @{ $data->{'categories'} } ) { - $checked = "checked=\"checked\""; + $checked = 1; } push @categoryloop, { categoryname => $cat->{'categoryname'}, --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -99,7 +99,12 @@
    [% FOREACH categoryloo IN categoryloop %]
  1. - [% categoryloo.codedescription %] + [% IF ( categoryloo.checked ) %] + + [% ELSE %] + + [% END %] + [% categoryloo.codedescription %]
  2. [% END %]
--