Bugzilla – Attachment 12542 Details for
Bug 8834
Call to C4::Context::preference fails to pass $self in Circulation.pm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Change :: to -> to correctly call C4::Context->preference
0001-Bug-8834-Call-to-C4-Context-preference-fails-to-pass.patch (text/plain), 1.18 KB, created by
Mark Tompsett
on 2012-09-27 06:33:37 UTC
(
hide
)
Description:
Change :: to -> to correctly call C4::Context->preference
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2012-09-27 06:33:37 UTC
Size:
1.18 KB
patch
obsolete
>From 6752d2b46ef3f4d8622783e98e6641252c022880 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Thu, 27 Sep 2012 14:12:00 +0800 >Subject: [PATCH] Bug 8834 - Call to C4::Context::preference fails to pass > $self in Circulation.pm >Content-Type: text/plain; charset="utf-8" > >Changed: > my $circcontrol = C4::Context::preference('CircControl'); >To: > my $circcontrol = C4::Context->preference('CircControl'); >This will pass $self and 'CircControl' which will then prevent >a "Use of uninitialized value" error log entry. >--- > C4/Circulation.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 71e13bb..f3d4c28 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -1981,7 +1981,7 @@ sub _debar_user_on_return { > # $deltadays is a DateTime::Duration object > my $deltadays = $calendar->days_between( $dt_due, $dt_today ); > >- my $circcontrol = C4::Context::preference('CircControl'); >+ my $circcontrol = C4::Context->preference('CircControl'); > my $issuingrule = > GetIssuingRule( $borrower->{categorycode}, $item->{itype}, $branchcode ); > my $finedays = $issuingrule->{finedays}; >-- >1.7.9.5 >
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 8834
:
12542
|
12768