[Koha-bugs] [Bug 8834] New: Call to C4::Context::preference fails to pass $self in Circulation.pm

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 27 08:08:47 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8834

          Priority: P5 - low
 Change sponsored?: ---
            Bug ID: 8834
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com
          Assignee: koha-bugs at lists.koha-community.org
           Summary: Call to C4::Context::preference fails to pass $self in
                    Circulation.pm
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: mtompset at hotmail.com
          Hardware: All
            Status: NEW
           Version: rel_3_8
         Component: Circulation
           Product: Koha

Currently line reads:
    my $circcontrol = C4::Context::preference('CircControl');
This fails to pass $self, which means the line:
    my $var  = lc(shift);  # The system preference to return
which is in C4::Context.pm (sub preference)
triggers the following error log entry:
[Thu Sep 27 12:23:16 2012] [error] [client 192.168.100.2] [Thu Sep 27 12:23:16
2012] renewscript.pl: Use of uninitialized value in lc at
/usr/share/koha/lib/C4/Context.pm line 529.

This of course was particularly confusing because the problem is neither in
renewscript.pl or Context.pm, but rather Circulation.pm.

This error happens to be in 'sub _debar_user_on_return', which may mean it may
or may not affect other user debarred on return bugs. That wasn't what I'm
testing for in this bug.

This does not exist in 3.6.x. This was discovered in 3.8.5. This exists in
3.8.x and master.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list