]> git.koha-community.org Git - koha.git/commit
Bug 23575: Template error causes item search to be submitted multiple times
authorOwen Leonard <oleonard@myacpl.org>
Mon, 9 Sep 2019 16:58:04 +0000 (16:58 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 17 Oct 2019 00:19:59 +0000 (00:19 +0000)
commitf346c4d076d0ad383217f3c31f6dcad53dded5db
tree6265e313238438c3d91c91822fe9a5ff96ee6f18
parent49029a40b7cd10259e08c827eef0f933d6853dd1
Bug 23575: Template error causes item search to be submitted multiple times

This patch corrects the item search template so that the submit handler
is not nested inside an unrelated loop. The change should have no
outward effect on the behavior of the item search other than making it
faster.

To observe the bug in action, open your browser's developer tools and
click the "Network" tab. Filter the output to only "XHR" and perform an
item search. You should see multiple requests.

To test, apply the patch and perform an item search. It should behave
normally.

Check the browser's "Network" monitor again to verify that only one
request is being sent.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 075261645e1650629038c9a09e8d9e387bcc5474)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 3cf3782a6097067d57030772417c3a2fe5cc9566)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt