-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Trim whitespace on SKU when saving product #16572
Comments
Hi @Zyles. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @Zyles do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hello @Zyles, thank you for your report. |
#squashtoberfest |
@magento-engcom-team give me 2.3-develop instance |
Hi @wstnbrg. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @wstnbrg, here is your Magento instance. |
Hi @Zyles. Thank you for your report. The fix will be available with the upcoming 2.3.1 release. |
Hi @Zyles. Thank you for your report. The fix will be available with the upcoming 2.2.8 release. |
Good, thank you. |
Preconditions
Magento 2.2
Steps to reproduce
Save or update product in admin with a space at beginning or end.
Expected result
Trim excessive whitespace at beginning and end of SKU
Actual result
Whitespace SKU saved in DB.
The actual problem
When you accidentally save a product with whitespaced SKUs it can become a future problem when syncing data, importing images, or any other process because the SKU was correct but a space was accidentally added.
When doing syncing you could end up with duplicate products with good inventory systems that actually trim the SKU.
The GUI text field itself is padded which can lead to store managers not noticing an accidental extra space.
Is there an applicable real world reason for a space at the beginning of an SKU (and the end)? Why is it allowed?
The text was updated successfully, but these errors were encountered: