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:
parent
5cc42c162c
commit
3d030ded6b
2 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
- .
|
||||
|
|
|
@ -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 + "&print=issue[% CircAutoPrintQuickSlip | html %]", "printwindow");
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue