Skip to content
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

Variant can overwrite an existing product #33576

Open
Movix opened this issue Mar 22, 2025 · 0 comments
Open

Variant can overwrite an existing product #33576

Movix opened this issue Mar 22, 2025 · 0 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@Movix
Copy link
Contributor

Movix commented Mar 22, 2025

Bug

When creating a variant and using a reference of an existing product, the existing product is replaced by the variant

Dolibarr Version

20.05

Environment PHP

8.2

Environment Database

mariadb

Steps to reproduce the behavior and expected behavior

Reproduce :
Create a product with reference A
Create a product with reference B
Create a variant of product B and set the reference of the variant as A
Product A will be replace by the variant

Expected :
When creating a variant and assigning a reference of an already existing product the variant should not be created and an error should be raised indicating that the chosen reference is already used

Attached files

No response

@Movix Movix added the Bug This is a bug (something does not work as expected) label Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

1 participant