|
Lines 132-142
elsif ($op eq 'doedit' || $op eq 'add') {
Link Here
|
| 132 |
} |
132 |
} |
| 133 |
} |
133 |
} |
| 134 |
|
134 |
|
| 135 |
my $categorycodes = Koha::Patron::Categories->search_with_library_limits({}, {order_by => ['description']}); |
135 |
my $categories = { |
|
|
136 |
map { $_->categorycode => $_->description } |
| 137 |
Koha::Patron::Categories->search_with_library_limits( {}, |
| 138 |
{ order_by => ['description'] } )->as_list |
| 139 |
}; |
| 140 |
|
| 136 |
$template->param( |
141 |
$template->param( |
| 137 |
rules => $rules, |
142 |
rules => $rules, |
| 138 |
categorycodes => $categorycodes, |
143 |
categories => $categories, |
| 139 |
messages => $errors |
144 |
messages => $errors |
| 140 |
); |
145 |
); |
| 141 |
|
146 |
|
| 142 |
output_html_with_http_headers $input, $cookie, $template->output; |
147 |
output_html_with_http_headers $input, $cookie, $template->output; |