From 4a5045da0ab750c9927e4e70e5f679d6a156493a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Fri, 6 Nov 2015 08:50:20 +0100 Subject: [PATCH] Bug 15146: Format date of birth on patrons requesting modification page To reproduce / test - Log in to Opac - Go to "your personal details" - Request a change of the date of birth - Log in to Staff client - Follow link to Patrons requesting modifications (/koha/members/members-update.pl) => The date is not formatted in syspref format - Apply patch, reload members-update.pl => The date is formatted in syspref format - Approve changes - Verify that changes are saved This is independent from C4::Dates removal. Signed-off-by: Hector Castro Works as advertised. Changes saved Ok, Update patron record follows dateformat syspref Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/members/members-update.tt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt index 64cffa20ac..cb23410d7b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt @@ -1,4 +1,5 @@ [% USE Branches %] +[% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] Koha › Patrons › Update patron records [% INCLUDE 'doc-head-close.inc' %] @@ -104,8 +105,13 @@ [% IF ( ( pm.$key OR borrowers.$borrowernumber.$key ) && ( pm.$key != borrowers.$borrowernumber.$key ) ) %] [% PROCESS display_names field = key %] - [% borrowers.$borrowernumber.$key %] - [% pm.$key %] + [% IF ( key == "dateofbirth" ) %] + [% borrowers.$borrowernumber.$key | $KohaDates %] + [% pm.$key | $KohaDates %] + [% ELSE %] + [% borrowers.$borrowernumber.$key %] + [% pm.$key %] + [% END %] [% END %] [% END %] -- 2.39.5