Bug 6369 Correct a formatting problem in the pdf generation of basketgroup.pl
authorFrédérick Capovilla <frederick.capovilla@sys-tech.net>
Wed, 18 May 2011 20:27:20 +0000 (16:27 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Fri, 12 Aug 2011 01:40:52 +0000 (13:40 +1200)
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
acqui/basketgroup.pl

index 08356f8..0846603 100755 (executable)
@@ -211,8 +211,8 @@ sub printbasketgrouppdf{
                 } else {
                     push(@ba_order, undef);
                 }
-                if ($ord->{itemtype}){
-                    push(@ba_order, $itemtypes->{$bib->{itemtype}}->{description}) if $bib->{itemtype};
+                if ($ord->{itemtype} and $bib->{itemtype}){
+                    push(@ba_order, $itemtypes->{$bib->{itemtype}}->{description});
                 } else {
                     push(@ba_order, undef);
                 }