Bugzilla – Attachment 75433 Details for
Bug 20781
0 months is not a valid enrollment period and causes errors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20781: Set a minimum enrollemnt period 'in months' of 1
Bug-20781-Set-a-minimum-enrollemnt-period-in-month.patch (text/plain), 1.61 KB, created by
Nick Clemens (kidclamp)
on 2018-05-18 14:04:21 UTC
(
hide
)
Description:
Bug 20781: Set a minimum enrollemnt period 'in months' of 1
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2018-05-18 14:04:21 UTC
Size:
1.61 KB
patch
obsolete
>From 3252b336f8fcc3fc9c6143489ca1fcfe21d874cc Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 18 May 2018 14:01:09 +0000 >Subject: [PATCH] Bug 20781: Set a minimum enrollemnt period 'in months' of 1 > >To test: > 1 - Browse to Admin->Patron Categories > 2 - Click '+ New category' > 3 - Enter data as required, however, enter 0 in 'Enrolment period' -> >'in months' > 4 - Save > 5 - View the list of categories, the new category has 'Enrolment period' >= 'until' > 6 - Create a patron in this category, note their dateexipry is >'0000-00-00' > 7 - Search for them > 8 - internal server error > 9 - Delete that patron >10 - Apply patch >11 - Edit the category, note you cannot save with 0 months >12 - Set 1 month and save >13 - Create a patron in this cateogry >14 - Note they have a valid dateexpiry >15 - Search for them >16 - All works >17 - Create a new category and verify you cannot add with 0 months >--- > koha-tmpl/intranet-tmpl/prog/js/categories.js | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/categories.js b/koha-tmpl/intranet-tmpl/prog/js/categories.js >index 0746ec7..2751afd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/categories.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/categories.js >@@ -60,7 +60,8 @@ $(document).ready(function() { > return $("#enrolmentperioddate").val() === ""; > }, > digits: true, >- enrollment_period: true >+ enrollment_period: true, >+ min: 1 > }, > enrolmentperioddate: { > required: function(element){ >-- >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 20781
:
75433
|
75437
|
75553
|
75554