Skip to content
Snippets Groups Projects
Commit d7978198 authored by Steven Wittens's avatar Steven Wittens
Browse files

- #52403: Comment order messed up on update.

parent 650f22bc
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1566,7 +1566,7 @@ function system_update_172() {
include_once './modules/comment.module';
$limit = 20;
$result = db_query_range("SELECT cid, thread FROM {comments} WHERE cid > %d", $_SESSION['system_update_172'], 0, $limit);
$result = db_query_range("SELECT cid, thread FROM {comments} WHERE cid > %d ORDER BY cid ASC", $_SESSION['system_update_172'], 0, $limit);
while ($comment = db_fetch_object($result)) {
$_SESSION['system_update_172'] = $comment->cid;
$thread = explode('.', rtrim($comment->thread, '/'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment