Преглед изворни кода

Anomalie #732: Err. 500: Filtres tags

Bastien Sevajol пре 11 година
родитељ
комит
9e1d963b98
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Muzich/CoreBundle/Searcher/ElementSearcherQueryBuilder.php

+ 1 - 1
src/Muzich/CoreBundle/Searcher/ElementSearcherQueryBuilder.php Прегледај датотеку

@@ -217,7 +217,7 @@ class ElementSearcherQueryBuilder
217 217
   private function buildStrict()
218 218
   {
219 219
     // Recherche strict ou non ?
220
-    if ($this->es->getTagStrict() && count(($tags = $this->es->getTags())))
220
+    if ($this->es->getTagStrict() && count(($tags = $this->es->getTags())) && $this->es->getTags() != '[]')
221 221
     {
222 222
       // On a besoin de récupérer la liste des element_id qui ont les tags
223 223
       // demandés.