Bugzilla – Attachment 157800 Details for
Bug 35149
Add "do nothing" option to CircAutoPrintQuickSlip system preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35149: Add Option to ignore submit of checkout field when empty
Bug-35149-Add-Option-to-ignore-submit-of-checkout-.patch (text/plain), 2.06 KB, created by
David Gustafsson
on 2023-10-25 13:43:22 UTC
(
hide
)
Description:
Bug 35149: Add Option to ignore submit of checkout field when empty
Filename:
MIME Type:
Creator:
David Gustafsson
Created:
2023-10-25 13:43:22 UTC
Size:
2.06 KB
patch
obsolete
>From d47c4cc5b7d92decf9899e1b124c61fa5e4820ff Mon Sep 17 00:00:00 2001 >From: Stefan Berndtsson <stefan.berndtsson@gmail.com> >Date: Mon, 25 Sep 2023 14:05:06 +0200 >Subject: [PATCH] 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 >--- > .../prog/en/modules/admin/preferences/circulation.pref | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 ++ > 2 files changed, 3 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >index 55feb4d4442..ac0848fb333 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >@@ -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" > - . >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 3388e387a53..5dfb5a9661e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -946,6 +946,8 @@ > [% IF ( CircAutoPrintQuickSlip == 'clear' ) %] > window.location='/cgi-bin/koha/circ/circulation.pl'; > return false; >+ [% ELSIF ( CircAutoPrintQuickSlip == 'ignore' ) %] >+ return false; > [% ELSE %] > return printx_window( '[% CircAutoPrintQuickSlip | html %]' ); > [% END %] >-- >2.42.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35149
:
157800
|
162323
|
163639
|
163640
|
166582