https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38358 --- Comment #2 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Created attachment 201655 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201655&action=edit Bug 38358: Do not allow selecting past dates when editing existing holidays "To date" input When you are editing holidays "To date" inputs calendar doesn't follow the "From date" date. Instead calendar offers you today's date/month and you must click calendar forward to the right date/month. This patch adds check to determine if user is adding new holiday or editing existing one and adjusts the code to disable past dates counting from selected "From date" in both cases. To test: 1. Navigate to calendar tool (Tools->Calendar). 2. Add new holiday and select "To date" for it. => Note that you are unable to select dates past from "From date". 3. Edit existing holiday and select "To date" for it. => Note that "To date" input calendar allows selecting dates past "From date". => If you chosed holiday from incoming month, note that "To date" calendar still opens up to this month. 4. Apply this patch, restart services if needed. 5. Edit existing holiday again. => Note that now "To date" inputs calendar works the same way as it is working when your adding a new holiday. Sponsored-by: Koha-Suomi Oy Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.