https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34440

--- Comment #96 from Jonathan Druart <[email protected]> ---
Reading the code:

koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js

 149                 leadDays = rules.bookings_lead_period;
 150                 trailDays = rules.n;

 819                             const leadStart = startDate
 820                                 ? startDate.subtract(leadDays, "day")
 821                                 : hoverDate.subtract(leadDays, "day");
 822                             const leadEnd = startDate ? startDate :
hoverDate;

I think we should test if startDate is defined.

Then also if bookings_lead_period and bookings_trail_period are defined.

I see, at least, "Uncaught TypeError: startDate is null" when no start date is
selected.

-- 
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/

Reply via email to