Bugzilla – Attachment 53274 Details for
Bug 15131
Give SCO separate control for AllowItemsOnHoldCheckout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15131: Make SCO use the new syspref.
Bug-15131-Make-SCO-use-the-new-syspref.patch (text/plain), 1.45 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-07-11 16:00:02 UTC
(
hide
)
Description:
Bug 15131: Make SCO use the new syspref.
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-07-11 16:00:02 UTC
Size:
1.45 KB
patch
obsolete
>From 000d1b71bafa76b83854783763d21b164d9da7de Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 11 Jul 2016 12:57:29 -0300 >Subject: [PATCH] Bug 15131: Make SCO use the new syspref. > >This patch just makes SCO use the new syspref (AllowItemsOnHoldCheckoutSCO) >instead of the old one, thus making it configurable, separate from the >non-SCO syspref. > >Sponsored-by: NEKLS >--- > opac/sco/sco-main.pl | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > >diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl >index 0e2a1b9..330360c 100755 >--- a/opac/sco/sco-main.pl >+++ b/opac/sco/sco-main.pl >@@ -31,8 +31,7 @@ > # > # FIXME: inputfocus not really used in TMPL > >-use strict; >-use warnings; >+use Modern::Perl; > > use CGI qw ( -utf8 ); > use Digest::MD5 qw(md5_base64); >@@ -142,7 +141,7 @@ elsif ( $op eq "checkout" ) { > $barcode, > undef, > 0, >- C4::Context->preference("AllowItemsOnHoldCheckout") >+ C4::Context->preference("AllowItemsOnHoldCheckoutSCO") > ); > } > $confirm_required = scalar keys %$needconfirm; >@@ -231,7 +230,7 @@ if ($borrower->{cardnumber}) { > $it->{'barcode'}, > undef, > 0, >- C4::Context->preference("AllowItemsOnHoldCheckout") >+ C4::Context->preference("AllowItemsOnHoldCheckoutSCO") > ); > $it->{'norenew'} = 1 if $renewokay->{'NO_MORE_RENEWALS'}; > push @issues, $it; >-- >2.9.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 15131
:
53273
|
53274
|
55696
|
55697
|
55883
|
55884
|
55885