[Koha-bugs] [Bug 17057] Remove event attributes from holds template

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 13 18:46:27 CEST 2019


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

--- Comment #5 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 92179
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=92179&action=edit
Bug 17057: (follow-up) Replace onsubmit attributes

This patch removes the "onsubmit" attribute from the place hold form.

To test, apply the patch and test placing a hold:

Begin the process of placing a hold on a single title. On the
place hold screen, uncheck the "Hold next available item" checkbox and
click the "Place hold" button.

You should be get an alert saying "Please select an item to place a
hold." Select an item and click the "Place hold" button again. The hold
should be placed.

This patch affects the form validation for placing multiple holds, but I
don't think the JavaScript ever has a chance to run: The template blocks
the user from placing multiple holds if one of the titles has no items.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list