Bugzilla – Attachment 44572 Details for
Bug 15146
Format date of birth on patrons requesting modification page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15146 - Format date of birth on patrons requesting modification page
Bug-15146---Format-date-of-birth-on-patrons-reques.patch (text/plain), 2.90 KB, created by
Jonathan Druart
on 2015-11-06 14:51:46 UTC
(
hide
)
Description:
Bug 15146 - Format date of birth on patrons requesting modification page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-11-06 14:51:46 UTC
Size:
2.90 KB
patch
obsolete
>From 285ba643e5e0e8a26529f70b99c82c3a434429c3 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >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 <hector.hecaxmmx@gmail.com> >Works as advertised. Changes saved Ok, Update patron record follows >dateformat syspref > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../intranet-tmpl/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 64cffa2..cb23410 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' %] > <title>Koha › Patrons › Update patron records</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -104,8 +105,13 @@ > [% IF ( ( pm.$key OR borrowers.$borrowernumber.$key ) && ( pm.$key != borrowers.$borrowernumber.$key ) ) %] > <tr> > <td>[% PROCESS display_names field = key %]</td> >- <td>[% borrowers.$borrowernumber.$key %]</td> >- <td>[% pm.$key %]</td> >+ [% IF ( key == "dateofbirth" ) %] >+ <td>[% borrowers.$borrowernumber.$key | $KohaDates %]</td> >+ <td>[% pm.$key | $KohaDates %]</td> >+ [% ELSE %] >+ <td>[% borrowers.$borrowernumber.$key %]</td> >+ <td>[% pm.$key %]</td> >+ [% END %] > </tr> > [% END %] > [% END %] >-- >2.1.0
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 15146
:
44539
|
44567
| 44572