From c9d7ea79026dcf4b61302dcdea1176c1d29768d2 Mon Sep 17 00:00:00 2001 From: Hector Castro 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: - + [% UNLESS action == 'edit' && !OPACPatronDetails %] [% UNLESS ( mandatory.defined('dateofbirth') ) %] -- 1.7.10.4