Bug 29026: Restore behavior when an empty barcode field is submitted in circulation
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 15 Sep 2021 07:33:47 +0000 (21:33 -1000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 9 Oct 2021 02:27:17 +0000 (16:27 -1000)
commit6ec6681e05d2546db84a84ff7ad0a399e4308c8b
tree3da315f1f31f68826314645b9b84ed5d8947960a
parent71aad3ffb9844e9b91cf6b87154881d988f25db3
Bug 29026: Restore behavior when an empty barcode field is submitted in circulation

When preference CircAutoPrintQuickSlip is 'clear the screen', when an empty barcode field is submitted in circulation :

Before Bug 17845, behavior was to display empty circulation page (no patron selected).
Now behavior is displaying the circulation page of current patron.

I think previous behavior was used when scanner is used to clear form and wait for another patron card to be scanned.

Test plan :
1) Set system preference CircAutoPrintQuickSlip to 'clear the screen'
2) Go to a patron circulation page
3) Post form without a barcode
=> Check you go to circulation page with no patron selected
4) Set system preference CircAutoPrintQuickSlip to 'open a print quick slip window'
5) Go to a patron circulation page
6) Post form without a barcode
=> Check you go to print quick slip window with correct datas

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 841cb7839498cf69d59d3b7861ced42f8aba9d45)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt