Bug 32260: Patron autocomplete - Do not display an alert if request is rejected
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 18 Nov 2022 07:00:24 +0000 (08:00 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 23 Nov 2022 12:45:21 +0000 (09:45 -0300)
commit09c2b96e0424507dd2a7b8636d582985a3998243
treef2bb3d1d3ce3473cfb757722b3df978e42d39568
parent4e5776d1ad9a64c02291e50dd7704e6cb2cd99aa
Bug 32260: Patron autocomplete - Do not display an alert if request is rejected

Not sure what is going on exactly, neither if this patch is the correct
way to fix this.
The request is "rejected" at some point (by the browser?), when we
search for patrons using the autocomplete and DT "at the same time".

To recreate:
Don't apply this patch
Go to /cgi-bin/koha/reserve/request.pl?biblionumber=1&borrowernumber=5
Search for "edn" then hit enter
You may see an alert, that will disappear
If you don't see the alert, repeat

This patch suggests to ignore the alert if the status of the request is
"rejected".

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/patron-autocomplete.js