]> git.koha-community.org Git - koha.git/commit
Bug 8834 - Call to C4::Context::preference fails to pass $self in Circulation.pm
authorMark Tompsett <mtompset@hotmail.com>
Thu, 27 Sep 2012 06:12:00 +0000 (14:12 +0800)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 24 Oct 2012 20:26:23 +0000 (09:26 +1300)
commit4d9d883f6ffcfaff4b9ac1fbb09f8535fab7a43b
tree693cfab79eb0bcf1198fc77e6df1e88a4911642b
parentb24fdbcdd60ce266df73be61a3e25aec47e3a03b
Bug 8834 - Call to C4::Context::preference fails to pass $self in Circulation.pm

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.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Circulation.pm