Unexpected behavior when deleting merged thread
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Reproduce the problem in the discussion forum with “show merged threads” enabled, following the listed merge-and-delete steps. Use the resulting PHP errors and the changed thread display to trace the deletion state; done means deleting a thread also deletes its merged threads without errors in either display mode.
Written by the indexing model from the issue text.
Description
Describe the bug
Deleting a thread that has a merged thread located at the top of the list will produce unexpected behavior.
Expected behavior
Deleting a thread that has merged threads should also have merged threads deleted.
To Reproduce
Steps to reproduce the behavior:
- Go to the discussion forum and make sure the "show merged threads" option is enabled.
- Merge the thread located at the top of the list into the thread below, and delete this thread.
- There will be numerous PHP errors on the left of the screen, see the image below.

Notice that thread (9) is now deleted, but the merged thread (10)'s state is unclear. - Turn off the "show merged threads" option will remove the errors, but the interface will be changed to the following.

- Dominant language
- PHP
- Stars
- 793
- Forks
- 1.1k
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 78
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Submitty/Submitty
-
Awaiting Triage bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Awaiting Triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug good first issue grade inquiry (prev. regrade request) Notifications / Email
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug good first issue grade inquiry (prev. regrade request)
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug good first issue TA Grading / TA UI
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
All issues in Submitty/Submitty
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100