Changeset 6606 for branches


Ignore:
Timestamp:
Jun 25, 2010, 11:18:58 PM (14 years ago)
Author:
nikrou
Message:

Bug 1740 fixed : Rating page returns database error
Query had incomplete group by clause

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/admin/rating.php

    r6403 r6606  
    172172    LEFT JOIN '.IMAGES_TABLE.' AS i ON r.element_id = i.id
    173173  WHERE 1 = 1 ' . $page['user_filter'] . '
    174   GROUP BY r.element_id
     174  GROUP BY i.id,
     175        i.path,
     176        i.file,
     177        i.tn_ext,
     178        i.average_rate,
     179        r.element_id
    175180  ORDER BY ' . $available_order_by[$order_by_index][1] .'
    176181  LIMIT '.$elements_per_page.' OFFSET '.$start.'
Note: See TracChangeset for help on using the changeset viewer.