BUGFIX: $item is reference to hashref, not reference to hash.
In fact, the double reference is useless overkill for this and another arg. This patch relieves the error seen in logs as: label-print-pdf.pl: Not a HASH reference at /home/atz/koha/production/intranet/modules/C4/Labels.pm line 1007., referer: http://staff-atz.dev.kohalibrary.com/cgi-bin/koha/labels/label-manager.pl?type=labels Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
e1e50db557
commit
3a1542c423
1 changed files with 2 additions and 2 deletions
|
@ -1000,11 +1000,11 @@ sub DrawSpineText {
|
|||
my $old_fontname = $fontname; # We need to keep track of the original font passed in...
|
||||
|
||||
for my $field (@str_fields) {
|
||||
|
||||
$field->{'code'} or warn "get_text_fields($layout_id, 'codes') element missing 'code' field";
|
||||
if ($$conf_data->{'formatstring'}) {
|
||||
$field->{'data'} = GetBarcodeData($field->{'code'},$$item,$record) ;
|
||||
} else {
|
||||
$field->{data} = $$item{$field->{'code'}} ;
|
||||
$field->{data} = $$item->{$field->{'code'}} ;
|
||||
}
|
||||
|
||||
# This allows us to print the title in italic (oblique) type... (Times Roman has a different nomenclature.)
|
||||
|
|
Loading…
Reference in a new issue