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.