Bugzilla – Attachment 44567 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]
[SIGNED-OFF]Bug 15146 - Format date of birth on patrons requesting modification page
SIGNED-OFFBug-15146---Format-date-of-birth-on-patr.patch (text/plain), 2.85 KB, created by
Héctor Eduardo Castro Avalos
on 2015-11-06 14:34:57 UTC
(
hide
)
Description:
[SIGNED-OFF]Bug 15146 - Format date of birth on patrons requesting modification page
Filename:
MIME Type:
Creator:
Héctor Eduardo Castro Avalos
Created:
2015-11-06 14:34:57 UTC
Size:
2.85 KB
patch
obsolete
>From e0208e29683996aa9879c90a7642610aeb20f875 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] [SIGNED-OFF]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 >--- > .../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 %] >-- >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 15146
:
44539
|
44567
|
44572