Bugzilla – Attachment 2317 Details for
Bug 4942
When a new patron is created and the expiry date is left blank, it comes up with an invalid date
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-bug-4929-add-validation-to-patron-administration.patch (text/plain), 1.55 KB, created by
Robin Sheat
on 2010-07-07 04:44:00 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2010-07-07 04:44:00 UTC
Size:
1.55 KB
patch
obsolete
>From bea6f4b44984895fba5277c21e890d8d2af335ec Mon Sep 17 00:00:00 2001 >From: Robin Sheat <robin@catalyst.net.nz> >Date: Wed, 7 Jul 2010 16:41:50 +1200 >Subject: [PATCH] bug 4929 - add validation to patron administration > >This validation requires an enrollment period or a date to be provided >before the form will save, which will prevent invalid dates getting into >the system. >--- > .../prog/en/modules/admin/categorie.tmpl | 12 ++++++++---- > 1 files changed, 8 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tmpl >index 2c1f022..db66f34 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tmpl >@@ -60,16 +60,20 @@ > _alertString += _("- upperagelimit is not a number") + "\n"; > > } >+ if(!(ff.enrolmentperioddate.value || ff.enrolmentperiod.value)) { >+ ok=1; >+ _alertString += _("- either Enrollment period or Until date must be provided") + "\n"; >+ } > if(ff.enrolmentperioddate.value && ff.enrolmentperiod.value){ > document.getElementById('enrolmentmessage').className = "error"; > return false; > } > > if (ok) { // if there is a problem >- alert(_alertString); >- return false; >- } >- // if all is good >+ alert(_alertString); >+ return false; >+ } >+ // if all is good > ff.submit(); > } > //]]> >-- >1.7.0.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 4942
: 2317