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

Tag always appears twice when assigned to product #2012

Open
blursolo opened this issue Nov 5, 2024 · 1 comment
Open

Tag always appears twice when assigned to product #2012

blursolo opened this issue Nov 5, 2024 · 1 comment
Labels
bug Something isn't working unconfirmed

Comments

@blursolo
Copy link

blursolo commented Nov 5, 2024

  • Lunar version: 1.0.0-beta.4
  • Laravel Version: 10.48.22
  • PHP Version: 8.2
  • Database Driver & Version: MySQL

Expected Behaviour:

Should add one tag per Input Field

Actual Behaviour:

The input field adds it twice, possibly not initially, but at least when the product changes are saved.

Steps To Reproduce:

If a tag has manually been created under Settings > Tags then assigning it in the product adds it twice. Removing one of it afterwards is imposisble because it will remove both.

tag

@blursolo blursolo added bug Something isn't working unconfirmed labels Nov 5, 2024
@blursolo
Copy link
Author

blursolo commented Nov 5, 2024

BTW deleting a tag in Settings > Tags throws:

SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (lunar.lunar_taggables, CONSTRAINT lunar_taggables_tag_id_foreign FOREIGN KEY (tag_id) REFERENCES lunar_tags (id))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

1 participant