https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35341
--- Comment #27 from Marcel de Rooy <[email protected]> --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt index e3edc701bc..f3c57ad25e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt @@ -1505,11 +1505,13 @@ } else if ( i == 9 ) { // specific processing for Hard due date $(current_column).find("select").val(itm_code); - if (is_valid_date(itm_text)) { + if (itm_text) { input_values = itm_text.split(' '); var fp = document.querySelector("#hardduedate")._flatpickr; - var hardduedate = fp.parseDate( input_values[1], flatpickr_dateformat_string ); - if( hardduedate) fp.setDate( hardduedate, 1 ); + if (is_valid_date(input_values[1])) { + var hardduedate = fp.parseDate( input_values[1], flatpickr_dateformat_string ); + if( hardduedate) fp.setDate( hardduedate, 1 ); + } } } else if ( i == 26 ) { // specific processing for No automatic renewal after (hard limit) -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
