Bugzilla – Attachment 50385 Details for
Bug 16285
write_age() function throws error for patron categories that don't include dateofbirth in form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 16285 - write_age() function throws error for patron categories that don't include dateofbirth in form
PASSED-QA-Bug-16285---writeage-function-throws-err.patch (text/plain), 1.37 KB, created by
Katrin Fischer
on 2016-04-19 06:21:10 UTC
(
hide
)
Description:
[PASSED QA] Bug 16285 - write_age() function throws error for patron categories that don't include dateofbirth in form
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-04-19 06:21:10 UTC
Size:
1.37 KB
patch
obsolete
>From 72a2374aeef8a61a7ef8ff256446190b887753a8 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 18 Apr 2016 16:07:46 +0000 >Subject: [PATCH] [PASSED QA] Bug 16285 - write_age() function throws error for > patron categories that don't include dateofbirth in form > >To test: >1 Add a patron in category Library or School >2 Note the js error in the console >3 Apply patch >4 Repeat and note the error is gone > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.z> > >Made it an explicit if, and fixed the author of the commit > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index d54c29e..4f328d5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -18,7 +18,9 @@ $(document).ready(function() { > [% END %] > $("#dateofbirth").datepicker({ maxDate: "-1D", yearRange: "c-120:" }); > dateformat = $("#dateofbirth").siblings(".hint").first().html(); >- write_age(); >+ if( $('#dateofbirth').length ) { >+ write_age(); >+ } > $("#entryform").validate({ > rules: { > email: { >-- >1.9.1
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 16285
:
50359
|
50370
| 50385