-
-
Notifications
You must be signed in to change notification settings - Fork 811
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
Cancel button does not remove database entries from attachments #9730
Comments
Joomla 5.1.4, Kunena 6.3.4 Database: 10.6.15-MariaDB I have just tried to reproduce the error from #9730.
Current result: Error message ’ danger The topic cannot be saved: Category 0 does not exist! ’ But in the profile in the attachment management the image is deleted. In the database, the image only exists once in jom5_kunena_attachments. |
@Gindi50 Does it also add an orphaned attachment entry in the diagnostics? |
Yes, one problem was displayed with attachmentOrphaned. |
I have tested again with three pictures. After selecting and before inserting the images, the images are already in profile/attachment management and in the database at jom5_kunena_attachment. In Kunena/Tools/Diagnosis there are now 3 problems with attachmentOrphaned. Then I inserted the three images. Then I removed the three images in the post and everything was gone, the text and the images. The text field said ‘true’. In the profile/attachment management there were only two pictures left, one was deleted. In Kunena/Tools/Diagnosis there are now 2 problems with attachmentOrphaned. In the database at jom5_kunena_attachment there are now 2 images. Then I cancelled the post. (With the known error message) In the profile I could delete the two pictures (with the known error message) The other two images were also deleted in the database. There was also no problem in the diagnosis. |
When using cancel button there are no entries for those images in attachment manager. |
This issue is stale because it has been open 30 days with no activity. |
Describe the bug
https://www.kunena.org/forum/k-6-3-0-support/168554-strange-error
Confirmed
To Reproduce
Actual result
Cannot save topic: Category 0 doesn't exist!
Additional context
The reason is that it does not remove the database entry with the cancel button as it used to. This results in an orphaned database entry.
System information
Desktop
The text was updated successfully, but these errors were encountered: