Bugzilla – Attachment 43885 Details for
Bug 14949
Remove C4::Dates from admin/smart-rules.pl and admin/categorie.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF]Bug 14949 - Remove remaining C4::Dates and fix display in admin/categorie.pl
SIGNED-OFFBug-14949---Remove-remaining-C4Dates-and.patch (text/plain), 2.53 KB, created by
Héctor Eduardo Castro Avalos
on 2015-10-23 21:32:59 UTC
(
hide
)
Description:
[SIGNED-OFF]Bug 14949 - Remove remaining C4::Dates and fix display in admin/categorie.pl
Filename:
MIME Type:
Creator:
Héctor Eduardo Castro Avalos
Created:
2015-10-23 21:32:59 UTC
Size:
2.53 KB
patch
obsolete
>From ff0e5daed0a5f62ec24662c84d037e7ac9db2961 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Wed, 14 Oct 2015 21:51:17 +0200 >Subject: [PATCH] [SIGNED-OFF]Bug 14949 - Remove remaining C4::Dates and fix > display in admin/categorie.pl > >This patch removes a remaining C4::Dates from admin/categroie.pl and fixes >the display of "Enrollment period" on the confirmation screen for deleting. > >To verify and test pls. refer to comments #5 and #6 > >Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> >Works as advertised >--- > admin/categorie.pl | 15 ++++++++++++--- > .../intranet-tmpl/prog/en/modules/admin/categorie.tt | 2 +- > 2 files changed, 13 insertions(+), 4 deletions(-) > >diff --git a/admin/categorie.pl b/admin/categorie.pl >index a848aa4..1d5cd08 100755 >--- a/admin/categorie.pl >+++ b/admin/categorie.pl >@@ -282,10 +282,19 @@ elsif ( $op eq 'delete_confirm' ) { > > my $category = $schema->resultset('Category')->find($categorycode); > >- $category->enrolmentperioddate( >- C4::Dates::format_date( $category->enrolmentperioddate() ) ); >+ if ( $category->enrolmentperioddate >+ && $category->enrolmentperioddate eq '0000-00-00' ) >+ { >+ $category->{'enrolmentperioddate'} = undef; >+ } > >- $template->param( category => $category, patrons_in_category => $count ); >+ $template->param( >+ category => $category, >+ description => $category->description, >+ enrolmentperiod => $category->enrolmentperiod, >+ enrolmentperioddate => $category->enrolmentperioddate, >+ patrons_in_category => $count, >+ ); > > # END $OP eq DELETE_CONFIRM > ################## DELETE_CONFIRMED ################################## >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt >index 92a6a28..2280c6c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt >@@ -1,4 +1,4 @@ >-[% USE KohaDates -%] >+[% USE KohaDates %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Administration › Patron categories › [% IF ( add_form ) %][% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %] > [% IF ( delete_confirm ) %][% IF ( patrons_in_category > 0 ) %]Cannot delete: category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %] >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14949
:
43094
|
43101
|
43169
|
43409
|
43884
|
43885
|
43934
|
43935
|
43936