Browse Source

bug fix: requete elements: gestion tags a modérer: les tags ou le booléen tomoderate est a null était oublié

bastien 13 years ago
parent
commit
c649274c85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Muzich/CoreBundle/Repository/ElementRepository.php

+ 1 - 1
src/Muzich/CoreBundle/Repository/ElementRepository.php View File

182
       $query_select = "SELECT e, t, o, g, fav
182
       $query_select = "SELECT e, t, o, g, fav
183
         FROM MuzichCoreBundle:Element e 
183
         FROM MuzichCoreBundle:Element e 
184
         LEFT JOIN e.group g 
184
         LEFT JOIN e.group g 
185
-        LEFT JOIN e.tags t WITH (t.tomoderate = '0'
185
+        LEFT JOIN e.tags t WITH (t.tomoderate = 'FALSE' OR t.tomoderate IS NULL
186
           OR t.privateids LIKE :uidt)
186
           OR t.privateids LIKE :uidt)
187
         LEFT JOIN e.elements_favorites fav WITH fav.user = :uid
187
         LEFT JOIN e.elements_favorites fav WITH fav.user = :uid
188
         JOIN e.owner o
188
         JOIN e.owner o