View | Details | Raw Unified | Return to bug 17047
Collapse All | Expand All

(-)a/serials/serials-search.pl (-6 / +5 lines)
Lines 165-178 else Link Here
165
        }
165
        }
166
    }
166
    }
167
167
168
    my $branches = GetBranches();
168
    my @branches = Koha::Libraries->search( {}, { order_by => ['branchcode'] } );
169
    my @branches_loop;
169
    my @branches_loop;
170
    foreach (sort keys %$branches){
170
    foreach my $b ( @branches ) {
171
        my $selected = 0;
171
        my $selected = 0;
172
        $selected = 1 if( defined $branch and $branch eq $_ );
172
        $selected = 1 if( defined $branch and $branch eq $b->branchcode );
173
        push @branches_loop, {
173
        push @branches_loop, {
174
            branchcode  => $_,
174
            branchcode  => $b->branchcode,
175
            branchname  => $branches->{$_}->{'branchname'},
175
            branchname  => $b->branchname,
176
            selected    => $selected,
176
            selected    => $selected,
177
        };
177
        };
178
    }
178
    }
179
- 

Return to bug 17047