Fixed input tag shown as its own sibling

This commit is contained in:
Marcin Kurczewski 2014-10-19 13:36:54 +02:00
parent f7215c42d9
commit c43db03624

View file

@ -61,6 +61,7 @@ class TagDao extends AbstractDao implements ICrudDao
->groupBy('tags.id') ->groupBy('tags.id')
->orderBy('postCount DESC, name ASC'); ->orderBy('postCount DESC, name ASC');
$arrayEntities = iterator_to_array($query); $arrayEntities = iterator_to_array($query);
array_shift($arrayEntities); //don't show input tag itself
return $this->arrayToEntities($arrayEntities); return $this->arrayToEntities($arrayEntities);
} }