@@ -, +, @@ 1 - Browse to Admin->Patron Categories 2 - Click '+ New category' 3 - Enter data as required, however, enter 0 in 'Enrolment period' -> 4 - Save 5 - View the list of categories, the new category has 'Enrolment period' 6 - Create a patron in this category, note their dateexipry is 7 - Search for them 8 - internal server error 9 - Delete that patron --- koha-tmpl/intranet-tmpl/prog/js/categories.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/js/categories.js +++ a/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){ --