Skip to content

When importing customer through CustomerImportExport created_at is always overwritten when updating customer #8546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rvr31 opened this issue Feb 14, 2017 · 3 comments
Labels
Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Progress: needs update

Comments

@rvr31
Copy link

rvr31 commented Feb 14, 2017

In vendor/magento/module-customer-import-export/Model/Import/Customer.php:361 created_at is also set when not passed as updating data. Thus resulting in an invalid created_at. Created_at should only be set to customers if created_at is actually passed as updating_data. Same should apply for updated_at. Mysql is already setting the created_at and updated_at through table settings so no need to duplicate this logic.

Expected result

  1. Customer created_at should stay the same when not passed in update data

Actual result

  1. Customer created_at is overwritten with current data/time when updating exsiting customer

Mysql updating of row in customer_entity
image

@veloraven
Copy link
Contributor

@Robin31 thank you for your feedback.
Please, format this issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result.
Please, also identify which version of Magento you are running.

@magento-engcom-team
Copy link
Contributor

@Robin31 , we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.

@rvr31
Copy link
Author

rvr31 commented Jan 8, 2018

This is fixed by #8548

@magento-engcom-team magento-engcom-team added the Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed label Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Progress: needs update
Projects
None yet
Development

No branches or pull requests

3 participants