Repository navigation
[FIX] Forum: Recalculate counters of copied forums [release_10] - #12468
Merged
mjansenDatabay merged 4 commits intoDec 4, 2026
Merged
mjansenDatabay merged 4 commits into
mjansenDatabay merged 4 commits into
Conversation
marvin-matuschek
force-pushed
the
fix/10/forum-copy-counters
branch
3 times, most recently
from
November 23, 2026 15:28
c083da2 to
b28e44a
Compare
mjansenDatabay
requested changes
Nov 25, 2026
marvin-matuschek
force-pushed
the
fix/10/forum-copy-counters
branch
from
November 25, 2026 12:37
b28e44a to
5fa6704
Compare
This was referenced Nov 25, 2026
Copying a forum kept the source counters and then incremented them again for every new thread and post. The thread overview then showed empty pages. A migration recalculates the counters of existing forums.
…ated counts Join thread and post totals once and store missing counts as zero.
marvin-matuschek
force-pushed
the
fix/10/forum-copy-counters
branch
from
November 26, 2026 09:56
5fa6704 to
1c2fbcd
Compare
marvin-matuschek
commented
Dec 1, 2026
The copy relied on the thread's post counter, which is never loaded and always 0, so every copied thread got a visible first posting. Whether the source thread has a first visible posting now decides this instead. The copy also gets its own creation date and the copying user as author, instead of the source forum's values.
marvin-matuschek
force-pushed
the
fix/10/forum-copy-counters
branch
from
December 2, 2026 16:10
54cebff to
c812ea1
Compare
mjansenDatabay
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Copying a forum kept the source thread and posting counters and then incremented them again for every new thread and post. The thread overview therefore showed empty pages that repeated the first page. A migration recalculates both counters for existing forums.
This bug also exists in ILIAS 11, 12 and trunk.
I also created PRs containing this fix for:
release_11
release_12
trunk