[Bug 4232] New: Undefined hash references in Label Creator
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4232 Summary: Undefined hash references in Label Creator Product: Koha Version: HEAD Platform: PC OS/Version: Windows 2000 Status: NEW Severity: major Priority: P2 Component: Label printing AssignedTo: cnighswonger@foundations.edu ReportedBy: Ian.Walls@med.nyu.edu Estimated Hours: 0.0 Change sponsored?: --- When attempting to search for new items to add to a batch, a search with results returns: Can't use an undefined value as a HASH reference at /usr/share/koha/intranet/cgi-bin/labels/label-item-search.pl line 129 Similarly, if one can get to manage a created batch, attempting to edit a batch will result in Can't use an undefined value as a HASH reference at /usr/share/koha/lib/C4/Creators/Lib.pm line 321 This seems to be caused by some compilations of Perl not allowing a hash to be declared and assigned on the same line. The offending lines of code are: my $item_data->{'_item_number'} = $item_results->{$item}->{'itemnumber'}; (from label-item-search.pl) my $label_summary->{'_label_number'} = $label_number; (in C4/Creators/Lib.pm). Splitting the declaration and assignment into two lines fixes the problem. my $item_data; $item_data->{'_item_number'} = $item_results->{$item}->{'itemnumber'}; (from label-item-search.pl) my $label_summary; $label_summary->{'_label_number'} = $label_number; (in C4/Creators/Lib.pm). -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4232 --- Comment #1 from Chris Nighswonger <cnighswonger@foundations.edu> 2010-02-19 20:39:57 --- Please run the following and post the results: perl -e 'use strict; my $hashname->{"hashkey"} = 123; print $hashname->{"hashkey"}' -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4232 --- Comment #2 from Ian Walls <Ian.Walls@med.nyu.edu> 2010-02-19 20:43:03 --- Results on my machine (Ubuntu 8.04 with Perl 5.008008) Can't use an undefined value as a HASH reference at -e line 1. -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4232 Galen Charlton <gmcharlt@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gmcharlt@gmail.com --- Comment #3 from Galen Charlton <gmcharlt@gmail.com> 2010-03-10 21:09:47 --- Patch pushed to HEAD. Please test and close. -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4232 Ian Walls <ian.walls@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@kohaorg.ec2.liblime.com