Skip to content

Commit

Permalink
Clarify non-threadedness of clarifications in code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eldering committed Nov 24, 2023
1 parent df78c81 commit e187de8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/src/Controller/Jury/ClarificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ public function changeQueueAction(Request $request, int $clarId): Response
$queue = null;
}

// Either this is the first in a thread (of 1 or more) or this 2nd or more.
// Find the original clarification if this is a reply, and then update
// the queue of the original clarification and all replies.
// Replies are not threaded, so no recursive search is needed.
$curClarification = $clarification->getInReplyTo() ?? $clarification;
foreach ($curClarification->getReplies() as $reply) {
$reply->setQueue($queue);
Expand Down

0 comments on commit e187de8

Please sign in to comment.