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>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
[% USE Branches %]
+[% USE KohaDates %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Patrons › Update patron records</title>
[% INCLUDE 'doc-head-close.inc' %]
[% 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 %]