Bugzilla – Attachment 43359 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), 1.88 KB, created by
Héctor Eduardo Castro Avalos
on 2015-10-12 21:27:23 UTC
(
hide
)
Description:
Bug 14956 - (follow) Prevent patrons to insert invalid dates in opac-memberentry.tt
Filename:
MIME Type:
Creator:
Héctor Eduardo Castro Avalos
Created:
2015-10-12 21:27:23 UTC
Size:
1.88 KB
patch
obsolete
>From 0b77c68428b819a7fc880f8d2b66b8d15d649f3b 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 > >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. >--- > 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