Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Model/Config/Source/Behavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ public function toOptionArray()
{
if (!$this->_options) {
$this->_options = [
['value' => \Magento\ImportExport\Model\Import::BEHAVIOR_APPEND, 'label' => __('Add/Update')],
['value' => \Magento\ImportExport\Model\Import::BEHAVIOR_REPLACE, 'label' => __('Replace')],
['value' => \Magento\ImportExport\Model\Import::BEHAVIOR_APPEND, 'label' => __('Append')],
['value' => \Magento\ImportExport\Model\Import::BEHAVIOR_ADD_UPDATE, 'label' => __('Add/Update')],
['value' => \Magento\ImportExport\Model\Import::BEHAVIOR_REPLACE, 'label' => __('Replace')],
['value' => \Magento\ImportExport\Model\Import::BEHAVIOR_DELETE, 'label' => __('Delete')],
];
}
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<fastsimpleimport>
<default>
<ignore_duplicates>0</ignore_duplicates>
<behavior>append</behavior>
<behavior>add_update</behavior>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change. To be honest, I am not sure if we should do this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. No, I wouldn't change the default behavior - we'd need to introduce a 2.0 then, and I don't think that would be worth it.
Everything else in this PR looks good for me.

<entity>catalog_product</entity>
<validation_strategy>validation-stop-on-errors</validation_strategy>
<allowed_error_count>10</allowed_error_count>
Expand Down