Bugzilla – Attachment 183802 Details for
Bug 34157
Exporting labels as a barcode range can cause a 500 error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34157: (follow-up) Tidiness fix
Bug-34157-follow-up-Tidiness-fix.patch (text/plain), 1.37 KB, created by
David Nind
on 2025-07-04 21:51:13 UTC
(
hide
)
Description:
Bug 34157: (follow-up) Tidiness fix
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-07-04 21:51:13 UTC
Size:
1.37 KB
patch
obsolete
>From 02394bd7d16b94154f322ba7fac98c8402e51606 Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Thu, 3 Jul 2025 17:01:25 +0000 >Subject: [PATCH] Bug 34157: (follow-up) Tidiness fix > >Signed-off-by: David Nind <david@davidnind.com> >--- > C4/Labels/Label.pm | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/C4/Labels/Label.pm b/C4/Labels/Label.pm >index 5502382736..dd289083ee 100644 >--- a/C4/Labels/Label.pm >+++ b/C4/Labels/Label.pm >@@ -385,9 +385,10 @@ sub draw_label_text { > my $font = $self->{'font'}; > my $item = _get_label_item( $self->{'item_number'} ); > my $label_fields = _get_text_fields( $self->{'format_string'} ); >- my $biblio = Koha::Biblios->find($item->{'biblionumber'}); >+ my $biblio = Koha::Biblios->find( $item->{'biblionumber'} ); > my $record; >- if (defined $biblio) { >+ >+ if ( defined $biblio ) { > $record = $biblio->metadata->record; > } > >@@ -411,6 +412,7 @@ LABEL_FIELDS: # process data for requested fields on current label > } else { > $field->{'data'} = _get_barcode_data( $field->{'code'}, $item, $record ); > } >+ > # Find appropriate font it oblique title selected, except main font is oblique > if ( ( $field->{'code'} eq 'title' ) and ( $self->{'oblique_title'} == 1 ) ) { > if ( $font =~ /^TB$/ ) { >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34157
:
162282
|
167338
|
172577
|
179001
|
179002
|
183772
|
183800
|
183801
| 183802