From 668b4bb737ed4be026e15dfd9ff19ff8cab6482c Mon Sep 17 00:00:00 2001
From: Matthias Meusburger <matthias.meusburger@biblibre.com>
Date: Wed, 19 Oct 2016 16:36:13 +0200
Subject: [PATCH] Bug 15503 [QA Followup] - Display "uneven number of fields"
 error only in relevant biblios

Signed-off-by: Benjamin Daeuber <bdaeuber@cityoffargo.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
---
 acqui/addorderiso2709.pl                                         | 2 +-
 koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl
index c9b9ae8..b2c9662 100755
--- a/acqui/addorderiso2709.pl
+++ b/acqui/addorderiso2709.pl
@@ -571,7 +571,7 @@ sub import_biblios_list {
 
             $cellrecord{'iteminfos'} = \@itemlist;
         } else {
-            $item_error = 1;
+            $cellrecord{'item_error'} = 1;
         }
         push @list, \%cellrecord;
 
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 939b466..d53faec 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt
@@ -315,7 +315,7 @@
                           </ol>
                         </div>
                         <div style="float:right">
-                        [% IF item_error %]Item records could not be processed because the number of item fields was uneven.[% END %]
+                        [% IF biblio.item_error %]Item records could not be processed because the number of item fields was uneven.[% END %]
                         [% FOREACH item IN biblio.iteminfos %]
                         <fieldset>
                         <legend>Item Record [% item.item_id %]</legend>
-- 
2.1.4