Bug 35149: Add Option to ignore submit of checkout field when empty

1) Apply patch
2) Set CircAutoPrintQuickSlip to "do nothing"
3) Go to the checkouts form for a specific patron
4) Submit the form with empty value
5) Verify that no action is taken and you stay on the current page

Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Stefan Berndtsson 2023-09-25 14:05:06 +02:00 committed by Katrin Fischer
parent 5cc42c162c
commit 3d030ded6b
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
2 changed files with 3 additions and 0 deletions

View file

@ -127,6 +127,7 @@ Circulation:
- pref: CircAutoPrintQuickSlip
choices:
clear: "clear the screen"
ignore: "do nothing"
qslip: "open a print quick slip window"
slip: "open a print slip window"
- .

View file

@ -1098,6 +1098,8 @@
[% IF ( CircAutoPrintQuickSlip == 'clear' ) %]
window.location='/cgi-bin/koha/circ/circulation.pl';
return false;
[% ELSIF ( CircAutoPrintQuickSlip == 'ignore' ) %]
return false;
[% ELSE %]
window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&amp;print=issue[% CircAutoPrintQuickSlip | html %]", "printwindow");
return false;