diff --git a/app/code/community/Ho/Import/Helper/Import.php b/app/code/community/Ho/Import/Helper/Import.php index ddb01ff..fb71ccb 100644 --- a/app/code/community/Ho/Import/Helper/Import.php +++ b/app/code/community/Ho/Import/Helper/Import.php @@ -354,6 +354,7 @@ public function getFieldMap($line, $field, $mapping) { return $values; } + /** * Count another field an give it or a list or a value. * @param $line @@ -368,11 +369,12 @@ public function getFieldCounter($line, $countConfig, $valueConfig = null) { $value = $this->_getMapper()->mapItem($valueConfig); $values = array(); for ($i = 0; $i < $count; $i++) { - $values[] = $value ? $value : $i; + $values[] = is_null($value) ? $i : $value; } return $values; } + public function ifFieldsValue($line, $fields, $valueField) { $values = $this->getFieldMultiple($line, $fields); $valid = true;