- Patch #1188880 by mr.baileys, tstoeckler: comment module test fails randomly.
parent
5a38d9a9a4
commit
ddfd625cf7
|
@ -508,6 +508,9 @@ function comment_get_recent($number = 10) {
|
||||||
->condition('c.status', COMMENT_PUBLISHED)
|
->condition('c.status', COMMENT_PUBLISHED)
|
||||||
->condition('n.status', NODE_PUBLISHED)
|
->condition('n.status', NODE_PUBLISHED)
|
||||||
->orderBy('c.created', 'DESC')
|
->orderBy('c.created', 'DESC')
|
||||||
|
// Additionally order by cid to ensure that comments with the same timestamp
|
||||||
|
// are returned in the exact order posted.
|
||||||
|
->orderBy('c.cid', 'DESC')
|
||||||
->range(0, $number)
|
->range(0, $number)
|
||||||
->execute()
|
->execute()
|
||||||
->fetchAll();
|
->fetchAll();
|
||||||
|
|
Loading…
Reference in New Issue