From 14ba5de67fabed0b5e00cd021c8b1d7a48601a47 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Wed, 28 Apr 2010 16:47:13 +0000 Subject: [PATCH] Bug fix Trac#106 (part 1): data from the last field of each row does not appear in the mapping/preview. SVN:trunk[367] --- pages/ajax.csvimport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/ajax.csvimport.php b/pages/ajax.csvimport.php index 4fff4d1dd1..c43b5a77ff 100644 --- a/pages/ajax.csvimport.php +++ b/pages/ajax.csvimport.php @@ -182,8 +182,8 @@ switch($sOperation) $oPage->add(''.GetMappingForField($sClassName, $sField, $index).''); $oPage->add(' '); $oPage->add(''); - $oPage->add(''.(isset($aData[$iStartLine][$index]) ? htmlentities($aData[$iStartLine][$index-1]) : ' ').''); - $oPage->add(''.(isset($aData[$iStartLine+1][$index]) ? htmlentities($aData[$iStartLine+1][$index-1]) : ' ').''); + $oPage->add(''.(isset($aData[$iStartLine][$index-1]) ? htmlentities($aData[$iStartLine][$index-1]) : ' ').''); + $oPage->add(''.(isset($aData[$iStartLine+1][$index-1]) ? htmlentities($aData[$iStartLine+1][$index-1]) : ' ').''); $oPage->add(''); $index++; }