Bugzilla – Attachment 64599 Details for
Bug 18465
Patron card creator: Print on duplex card printer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Bug 18465: (followup) Do not use clone
Bug-18465-followup-Do-not-use-clone.patch (text/plain), 1.06 KB, created by
Marc Véron
on 2017-06-23 16:50:56 UTC
(
hide
)
Description:
Bug 18465: (followup) Do not use clone
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2017-06-23 16:50:56 UTC
Size:
1.06 KB
patch
obsolete
>From d579b9602fc96f64be91747d8ac7ccba6ecb8122 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Fri, 23 Jun 2017 18:48:00 +0200 >Subject: [PATCH] Bug 18465: (followup) Do not use clone > >Use simple copy instead of clone, see comments #15 - #17 >--- > patroncards/create-pdf.pl | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/patroncards/create-pdf.pl b/patroncards/create-pdf.pl >index 9f21a50..8a6f0f7 100755 >--- a/patroncards/create-pdf.pl >+++ b/patroncards/create-pdf.pl >@@ -26,7 +26,6 @@ use Graphics::Magick; > use XML::Simple; > use POSIX qw(ceil); > use autouse 'Data::Dumper' => qw(Dumper); >-use Clone qw(clone); > > use C4::Debug; > use C4::Context; >@@ -134,7 +133,7 @@ foreach my $item (@{$items}) { > > #my $print_layout_xml = $layout_back_xml; > my $print_layout_xml = (( ($cardscount % 2 == 1) && ( $layout_back_id ) ) ? >- clone($layout_back_xml) : clone($layout_xml) ); >+ $layout_back_xml : $layout_xml ); > > $cardscount ++; > my $borrower_number = $item->{'borrower_number'}; >-- >2.1.4
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 Raw
Actions:
View
Attachments on
bug 18465
:
62498
|
63011
|
63012
|
63046
|
64599
|
64600
|
64601
|
64606
|
64607