Lines 194-200
if ( $op eq 'add_form' ) {
Link Here
|
194 |
$op = 'list'; |
194 |
$op = 'list'; |
195 |
} elsif ( $op eq 'delete_confirm_category' ) { |
195 |
} elsif ( $op eq 'delete_confirm_category' ) { |
196 |
my $category = Koha::LibraryCategories->find($categorycode); |
196 |
my $category = Koha::LibraryCategories->find($categorycode); |
197 |
if ( my $libraries_count = scalar( $category->libraries ) ) { |
197 |
if ( my $libraries_count = $category->libraries->count ) { |
198 |
push @messages, |
198 |
push @messages, |
199 |
{ type => 'error', |
199 |
{ type => 'error', |
200 |
code => 'cannot_delete_category', |
200 |
code => 'cannot_delete_category', |
201 |
- |
|
|