Changeset 6607 for trunk


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

Bug 1740 fixed : Bug 1740 fixed : Rating page returns database error
Query had incomplete group by clause
Merge from branch 2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/rating.php

    r6402 r6607  
    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.