Permalink
Browse files

[#19843187] Unpopulated item fields label bug fix

This bug resolves issues where barcodes print desc/code tags when
the item fields specified in the layout happen to be blank.
  • Loading branch information...
1 parent f11a7c0 commit 42c96ce428ff70e9fba1c44c8206205960e9e358 @rfy rfy committed with ctfliblime Oct 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 C4/Labels/Label.pm
View
@@ -461,7 +461,7 @@ sub draw_label_text {
$field_data =~ s/\)/\\\)/g;
}
else {
- $field_data = $$field{desc} || $$field{code};
+ $field_data = $$field{desc} || $$field{code} unless $field->{data} eq undef; ##fixes bug with unpopulated item fields where the desc/code is rendered in the labels.
}
eval{$Text::Wrap::columns = $self->{'text_wrap_cols'};};

0 comments on commit 42c96ce

Please sign in to comment.