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

(-)a/admin/categorie.pl (-3 / +12 lines)
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 ##################################
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt (-2 / +1 lines)
Lines 1-4 Link Here
1
[% USE KohaDates -%]
1
[% USE KohaDates %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Administration &rsaquo; Patron categories &rsaquo; [% IF ( add_form ) %][% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %]
3
<title>Koha &rsaquo; Administration &rsaquo; Patron categories &rsaquo; [% IF ( add_form ) %][% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %]
4
[% IF ( delete_confirm ) %][% IF ( patrons_in_category > 0 ) %]Cannot delete: category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %]
4
[% IF ( delete_confirm ) %][% IF ( patrons_in_category > 0 ) %]Cannot delete: category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %]
5
- 

Return to bug 14949