akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
954 stars 514 forks source link

Product mass edit - common attributes and validation on SKU #5846

Closed mathewrapid closed 7 years ago

mathewrapid commented 7 years ago

I'm reporting a Bug

If your product identifier, that is SKU, has an regex validation on it, for an example /^\d+$/ then the Mass edit common attributes will fail with a validation error.

This is because in https://github.com/akeneo/pim-community-dev/blob/master/src/Pim/Bundle/EnrichBundle/MassEditAction/Operation/EditCommonAttributes.php#L229 the temp product, that gets validated, gets a fake SKU which might not match the given regex for the identifier.

aistis- commented 7 years ago

I confirm we have the same issue on v1.6.12 CE

LaureBrosseau commented 7 years ago

Hello @mathewrapid @aistis- ,

This issue on 1.7.2, here's the commit if you need it for 1.6 version: https://github.com/akeneo/pim-community-dev/pull/6009/commits.

Kind regards,

Laure