From 2d427b25aa778c7eafbc67af066f849c32b7cf06 Mon Sep 17 00:00:00 2001 From: Koha instance kohadev-koha Date: Tue, 14 Feb 2017 14:52:10 +0000 Subject: [PATCH] Bug 15503 (QA Followup) Fix tabs Dereference hash for each Signed-off-by: Kyle M Hall --- acqui/addorderiso2709.pl | 6 +++--- .../prog/en/modules/acqui/addorderiso2709.tt | 17 ++++++++--------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl index b0a74d115d..18ba56e4cc 100755 --- a/acqui/addorderiso2709.pl +++ b/acqui/addorderiso2709.pl @@ -243,7 +243,7 @@ if ($op eq ""){ } # Create orderlines from MarcItemFieldsToOrder - while(my ($budget_id, $infos) = each $budget_hash) { + while(my ($budget_id, $infos) = each %$budget_hash) { if ($budget_id) { my %orderinfo = ( biblionumber => $biblionumber, @@ -391,7 +391,7 @@ if ($op eq ""){ for (my $qtyloop=1;$qtyloop <= $c_quantity;$qtyloop++) { my ( $biblionumber, $bibitemnum, $itemnumber ) = AddItemFromMarc( $record, $biblionumber ); $order->add_item( $itemnumber ); - } + } } else { SetImportRecordStatus( $biblio->{'import_record_id'}, 'imported' ); } @@ -623,7 +623,7 @@ sub import_biblios_list { locationloop => \@locations, itypeloop => \@itypes, ccodeloop => \@ccodes, - notforloanloop => \@notforloans, + notforloanloop => \@notforloans, ); batch_info($template, $batch); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index 1a11bdc55e..fe420c405b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -370,17 +370,16 @@ -
  • - + [% FOREACH n IN notforloanloop %] + [% IF n.code == item.notforloan %] + + [% ELSE %] + + [% END %] [% END %] -
  • +