Procházet zdrojové kódy

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

bastien před 13 roky
rodič
revize
c649274c85

+ 1 - 1
src/Muzich/CoreBundle/Repository/ElementRepository.php Zobrazit soubor

@@ -182,7 +182,7 @@ class ElementRepository extends EntityRepository
182 182
       $query_select = "SELECT e, t, o, g, fav
183 183
         FROM MuzichCoreBundle:Element e 
184 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 186
           OR t.privateids LIKE :uidt)
187 187
         LEFT JOIN e.elements_favorites fav WITH fav.user = :uid
188 188
         JOIN e.owner o