https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34263
--- Comment #1 from Katariina Pohto <[email protected]> --- Created attachment 166069 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=166069&action=edit Bug 34263: Suspending holds consecutively populates previously used date falsely The date picker and the hidden input field that saves the suspend date are two different fields. Using the Suspend button or the "Clear date to suspend indefinitely" link will only clear the hidden input field, and not the date picker. This will result in inconsistencies with what's seen on the date picker and what's actually set as the date value. This patch will change the functions for Suspend button the Clear date link to clear both the hidden input field and the date picker, so the dates are working consistently. The fields already had a unified class suspend-until but it was not used. Test plan: 1) Place 3 holds on a patron. 2) Suspend a hold and set a date for it. 3) Suspend a second hold and notice the previously used date is shown on the date picker. Note that the hold will be suspended indefinitely. 4) Open the suspending window for the third hold and pick a date. Click "Clear date to suspend indefinitely" and note the date picker doesn't get cleared. The hold will be suspended indefinitely. 5) Apply patch. 6) Suspend a hold and set a date for it. 7) Suspend a second hold and notice the date picker does not have a preset date. 8) Pick a date and clear it with the "Clear date to suspend indefinitely link". See that the date picker also gets cleared. -- 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/
