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>
(cherry picked from commit 3d030ded6b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
c57751bb64
commit
65482f06a4
|
|
@ -121,6 +121,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"
|
||||
- .
|
||||
|
|
|
|||
|
|
@ -1038,6 +1038,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 + "&print=issue[% CircAutoPrintQuickSlip | html %]", "printwindow");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue