Bugzilla – Attachment 43357 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/opac-memberentry.pl
Bug-14956---follow-Prevent-patrons-to-insert-inval.patch (text/plain), 1.63 KB, created by
Héctor Eduardo Castro Avalos
on 2015-10-12 21:03:59 UTC
(
hide
)
Description:
Bug 14956 - (follow) Prevent patrons to insert invalid dates in opac/opac-memberentry.pl
Filename:
MIME Type:
Creator:
Héctor Eduardo Castro Avalos
Created:
2015-10-12 21:03:59 UTC
Size:
1.63 KB
patch
obsolete
>From c9d7ea79026dcf4b61302dcdea1176c1d29768d2 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/opac-memberentry.pl > >Prevent to insert dates like 0000-00-00, 1970-32-10, etc., according with >comment 4. > >To test > >1) Apply last patch >2) 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