|
Lines 282-291
elsif ( $op eq 'delete_confirm' ) {
Link Here
|
| 282 |
|
282 |
|
| 283 |
my $category = $schema->resultset('Category')->find($categorycode); |
283 |
my $category = $schema->resultset('Category')->find($categorycode); |
| 284 |
|
284 |
|
| 285 |
$category->enrolmentperioddate( |
285 |
if ( $category->enrolmentperioddate |
| 286 |
C4::Dates::format_date( $category->enrolmentperioddate() ) ); |
286 |
&& $category->enrolmentperioddate eq '0000-00-00' ) |
|
|
287 |
{ |
| 288 |
$category->{'enrolmentperioddate'} = undef; |
| 289 |
} |
| 287 |
|
290 |
|
| 288 |
$template->param( category => $category, patrons_in_category => $count ); |
291 |
$template->param( |
|
|
292 |
category => $category, |
| 293 |
description => $category->description, |
| 294 |
enrolmentperiod => $category->enrolmentperiod, |
| 295 |
enrolmentperioddate => $category->enrolmentperioddate, |
| 296 |
patrons_in_category => $count, |
| 297 |
); |
| 289 |
|
298 |
|
| 290 |
# END $OP eq DELETE_CONFIRM |
299 |
# END $OP eq DELETE_CONFIRM |
| 291 |
################## DELETE_CONFIRMED ################################## |
300 |
################## DELETE_CONFIRMED ################################## |