Skip to content

Commit

Permalink
B: Check if import field value is really NULL
Browse files Browse the repository at this point in the history
When a value was 0, the clearfield symbol was also inserted, instead of 0.
Now this symbol is only inserted when the value is really empty.
  • Loading branch information
Maikel-Koek committed Jun 18, 2014
1 parent 248389c commit 75e4729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/community/Ho/Import/Model/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ protected function _fieldMapItem(&$item)
}

if ($symbolForClearField && isset($fieldConfig['@'])
&& (!isset($itemRows[$storeCode][0][$fieldName]) || !$itemRows[$storeCode][0][$fieldName])) {
&& (!isset($itemRows[$storeCode][0][$fieldName]) || $itemRows[$storeCode][0][$fieldName] === NULL)) {
$itemRows[$storeCode][0][$fieldName] = $symbolForClearField;
}
}
Expand Down

0 comments on commit 75e4729

Please sign in to comment.