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

Deleting a customer who has posted forum posts leads to a SqlException #1234

Open
mgesing opened this issue Dec 31, 2024 · 0 comments
Open
Assignees
Labels
Milestone

Comments

@mgesing
Copy link
Contributor

mgesing commented Dec 31, 2024

To Reproduce
Steps to reproduce the behavior:

  1. Create forum post(s) as a guest (without being logged in).
  2. Delete the guest customer with whom you previously created the forum posts on the customer edit page.

Error message
SqlException: The DELETE statement conflicted with the REFERENCE constraint "FK_dbo.Forums_Post_dbo.Customer_CustomerId". The conflict occurred in database "yogisan-core", table "dbo.Forums_Post", column 'CustomerId'.

Expected behavior
It should be possible to soft-delete the customer, even if he has forum posts.

Additional context
Soft-deletion was possible in version 4.x. The corresponding forum posts were still displayed in the frontend.

@mgesing mgesing added the bug label Dec 31, 2024
@mgesing mgesing added this to the 6.0.1 milestone Dec 31, 2024
@muratcakir muratcakir changed the title Deleting a customer who has posted forum posts leads to a SqlException Deleting a customer who has posted forum posts leads to an SqlException Jan 2, 2025
@muratcakir muratcakir changed the title Deleting a customer who has posted forum posts leads to an SqlException Deleting a customer who has posted forum posts leads to a SqlException Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants