Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2006 at 20:02 UTC
Updated:
26 Dec 2006 at 13:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
leflo commentedComment #2
webernet commentedThere does appear to be a vaild bug here. Adjacent comments in the nested list only differ by one level.
Unfortunately patch doesn't apply.
Comment #3
webernet commentedCurrently, if a comment is indented, the next comment in the threaded list appears to be at most 1 level higher, even if it should be a top-level comment.
Currently it looks like this:
Comment 1
-Comment 1.1
--Comment 1.1.1
--Comment 1.1.2
-Comment 2
Should be:
Comment 1
-Comment 1.1
--Comment 1.1.1
--Comment 1.1.2
Comment 2
Patch seems to fix the issue, not sure if it's the right/best approach though.
Comment #4
merlinofchaos commentedI think this patch looks good. I was thinking that isnce the while loop decrements $last_depth setting it immediately after is unnecessary, but that while loop does not always run and the last_depth needs to be set. It may be that the $last_depth = $comment->depth should be moved to just before the else.
Comment #5
webernet commentedHere's a revised patch.
Comment #6
Steven commentedCommitted to HEAD, thanks.
Comment #7
webernet commentedComment #8
(not verified) commented