Bug 15503 (QA Followup)
authorKoha instance kohadev-koha <kohadev-koha@kohadevbox>
Tue, 14 Feb 2017 14:52:10 +0000 (14:52 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 14 Feb 2017 15:11:03 +0000 (15:11 +0000)
Fix tabs
Dereference hash for each

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
acqui/addorderiso2709.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt

index b0a74d1..18ba56e 100755 (executable)
@@ -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);
 }
index 1a11bdc..fe420c4 100644 (file)
                         </select>
                         </li>
 
-                        <li>
-                       <label for="notforloan_item_[% item.item_id %]">notforloan</label><select id="notforloan_item_[% item.item_id %]" name="notforloan_[% item.biblio_count %]">
-                       [% FOREACH n IN notforloanloop %]
-                          [% IF n.code == item.notforloan %]
-                            <option value="[% n.code %]" selected="selected">[% n.description %]</option>
-                          [% ELSE %]
-                            <option value="[% n.code %]">[% n.description %]</option>
-                          [% END %]
+                        <li><label for="notforloan_item_[% item.item_id %]">notforloan</label><select id="notforloan_item_[% item.item_id %]" name="notforloan_[% item.biblio_count %]">
+                        [% FOREACH n IN notforloanloop %]
+                            [% IF n.code == item.notforloan %]
+                                <option value="[% n.code %]" selected="selected">[% n.description %]</option>
+                            [% ELSE %]
+                                <option value="[% n.code %]">[% n.description %]</option>
+                            [% END %]
                         [% END %]
                         </select>
-                       </li>
+                        </li>
                         <li><label for="uri_item_[% item.item_id %]">uri</label><input type="text" id="uri_item_[% item.item_id %]" name="uri_[% item.biblio_count %]" value="[% item.uri %]"></li>
                         <li><label for="copyno_item_[% item.item_id %]">copyno</label><input type="text" id="copyno_item_[% item.item_id %]" name="copyno_[% item.biblio_count %]" value="[% item.copyno %]"></li>
                         <li><label for="budget_code_item_[% item.item_id %]">budget_code</label><select id="budget_code_item_[% item.item_id %]" name="budget_code_[% item.biblio_count %]">