Product code can be not unique


I noticed that one can add product with existing code and change a product code to a not unique one.

Reproduction steps:

  1. Log into the application as administrator.

  2. Go to Administration > Products.

  3. Click the "Edit" button next to any product.

  4. Change the product's code to a not unique one (e.g. “C100”).

  5. Try to update the product.

  6. The Product is updated.

  7. Click the “+Add Product” button.

  8. Use a not unique product's code but with different casing (e.g. "c100").

  9. Fill in all required fields and click the “Add Product” button.

  10. The product is added.

Expected results:

  • It shouldn't be possible to change the product's code to a not unique one, even if the different casing is used;

  • It shouldn’t be possible to add the product with non-unique code;

  • The changes shouldn't be saved; instead, an error message should be returned.




Joanna Bebak
January 28, 2020, 10:07 AM

The issue is still valid.

Joanna Bebak
September 4, 2019, 7:53 AM

I was able to reproduce the issue.




Joanna Szymańska