Gitlab@AEI Hannover will go down for maintenance on 2020-09-21 at 4:00 UTC. The service will be unavailable for up to 24 hours. If you have questions about this please contact atlas_admin@aei.mpg.de

Commit df966c74 authored by Shawn Kwang's avatar Shawn Kwang

Drupal: Fixed bug in comment goto code.

Fixed bug in pagination where hidden comments would result in incorrect page number for the drupal goto.

Fixes: https://dev.gridrepublic.org/browse/DBOINCP-524
parent 0900f7e8
......@@ -1671,7 +1671,7 @@ function boinccore_url_pagination_handler($type, $object_id = NULL) {
// See how many comments there are before (or after) this comment...
$comment_offset = db_result(db_query('
SELECT COUNT(*) FROM {comments}
WHERE nid = %d AND status = 0 AND timestamp %s %d',
WHERE nid = %d AND (status = 0 OR status = 1) AND timestamp %s %d',
$object->nid, $gt_lt, $object->timestamp));
if ($comment_offset) {
// Get the number of comments per page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment