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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 16 20:29:40 CEST 2019


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

Maryse Simard <maryse.simard at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #92179|0                           |1
        is obsolete|                            |

--- Comment #7 from Maryse Simard <maryse.simard at inlibro.com> ---
Created attachment 92294
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=92294&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.

Signed-off-by: Maryse Simard <maryse.simard at inlibro.com>

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


More information about the Koha-bugs mailing list