Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 42c96ce428ff70e9fba1c44c8206205960e9e358 1 parent f11a7c0
@rfy rfy authored ctfliblime committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  C4/Labels/Label.pm
View
2  C4/Labels/Label.pm
@@ -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'};};
Please sign in to comment.
Something went wrong with that request. Please try again.