Bugzilla – Attachment 50359 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.15 KB, created by
Nick Clemens
on 2016-04-18 17:18:26 UTC
(
hide
)
Description:
Bug 16285 - write_age() function throws error for patron categories that don't include dateofbirth in form
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2016-04-18 17:18:26 UTC
Size:
1.15 KB
patch
obsolete
>From c53cdd87759b39befebc31c01be6d4ddcd466324 Mon Sep 17 00:00:00 2001 >From: Your Full Name <your_email> >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 >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 +- > 1 file changed, 1 insertion(+), 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..b98c9ad 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,7 @@ $(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