Bugzilla – Attachment 50370 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]
Bug 16285 - write_age() function throws error for patron categories that don't include dateofbirth in form
Bug-16285---writeage-function-throws-error-for-pat.patch (text/plain), 1.30 KB, created by
Chris Cormack
on 2016-04-19 01:46:21 UTC
(
hide
)
Description:
Bug 16285 - write_age() function throws error for patron categories that don't include dateofbirth in form
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2016-04-19 01:46:21 UTC
Size:
1.30 KB
patch
obsolete
>From 1fe4a7451b07f51d0718a9e226a4c6bf0cd64e3d Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 18 Apr 2016 16:07:46 +0000 >Subject: [PATCH] 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 >--- > 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..4ae35df 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: { >-- >2.1.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 16285
:
50359
|
50370
|
50385