Bugzilla – Attachment 43362 Details for
Bug 14956
Remove C4::Dates from files opac/*.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14956 - (follow) Prevent patrons to insert invalid dates in opac-memberentry.tt
Bug-14956---follow-Prevent-patrons-to-insert-inval.patch (text/plain), 2.15 KB, created by
Marc Véron
on 2015-10-12 21:37:28 UTC
(
hide
)
Description:
Bug 14956 - (follow) Prevent patrons to insert invalid dates in opac-memberentry.tt
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2015-10-12 21:37:28 UTC
Size:
2.15 KB
patch
obsolete
>From 72b4b5bdca653c196e04fca0830aaa6b63e3af7d Mon Sep 17 00:00:00 2001 >From: Hector Castro <hector.hecaxmmx@gmail.com> >Date: Mon, 12 Oct 2015 14:56:54 -0600 >Subject: [PATCH] Bug 14956 - (follow) Prevent patrons to insert invalid dates > in opac-memberentry.tt >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Prevent to insert invalid dates in opac-memberentry.tt. > >To test > >1) Apply last patch (interactive) >2) Goto 'your personal details in opac' and modify date of birth >with 2015-10-32 >3) Goto staff in Home > Patrons requesting modifications, at the bottom of >screen this redirect to members/members-update.pl and you get noticed that the >date sent is '0000-00-00' >4) Apply patch >5) Go to 'your personal details in opac' (opac/opac-memberentry.pl) observe >that field is readonly and patrons can't insert invalid dates. > >Field 'Date of birth' in Opac is now restricted to date picker. Works as advertised. >Signed-off-by: Marc Véron <veron@veron.ch> > >http://bugs.koha-community.org/show_bug.cgi?id=14920 >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >index ca35988..c88f3c0 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >@@ -188,7 +188,7 @@ > [% END %] > Date of birth:</label> > >- <input type="text" id="borrower_dateofbirth" name="borrower_dateofbirth" value="[% borrower.dateofbirth | $KohaDates %]" size="10" /> >+ <input type="text" id="borrower_dateofbirth" name="borrower_dateofbirth" value="[% borrower.dateofbirth | $KohaDates %]" size="10" readonly=""/> > > [% UNLESS action == 'edit' && !OPACPatronDetails %] > [% UNLESS ( mandatory.defined('dateofbirth') ) %] >-- >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 14956
:
43123
|
43356
|
43357
|
43359
|
43362
|
43408
|
44352
|
44353
|
44518
|
44534
|
44593
|
44594
|
88203
|
88204