Bug 11513: (follow-up) format enrollment end date consistently
authorGalen Charlton <gmc@esilibrary.com>
Fri, 31 Jan 2014 16:21:05 +0000 (16:21 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 31 Jan 2014 16:21:05 +0000 (16:21 +0000)
The previous patch added use of the KohaDates TT plugin, so this
patch makes sure that it gets used to format the display of all
occurrences of the enrollment end date.

To test:

[1] Create a patron category with a fixed end date.
[2] Bring up the list of all categories and verify that the date
    is displayed based on the dateformat value.
[3] Delete the category, and verify that the confirmation dialog
    formats the date correctly.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt

index 6106e5f..ce7f014 100644 (file)
@@ -243,7 +243,7 @@ Confirm deletion of category [% categorycode |html %][% END %]</legend>
                        [% IF ( enrolmentperiod ) %]
                                [% enrolmentperiod %] months
                        [% ELSE %]
-                               until [% enrolmentperioddate %]
+                               until [% enrolmentperioddate | $KohaDates %]
                        [% END %]
                </td>
        </tr>
@@ -323,7 +323,7 @@ Confirm deletion of category [% categorycode |html %][% END %]</legend>
                                [% IF ( loo.enrolmentperiod ) %]
                                        [% loo.enrolmentperiod %] months
                                [% ELSE %]
-                                       until [% loo.enrolmentperioddate %]
+                                       until [% loo.enrolmentperioddate | $KohaDates %]
                                [% END %]
                         
                         </td>