fix tag query to show all tags of an item, even if not included in query (#810)
This commit is contained in:
@@ -84,10 +84,11 @@ abstract class TimesheetAbstractController extends AbstractController
|
||||
$query->setUser($this->getUser());
|
||||
}
|
||||
|
||||
if ($query->hasTags()) {
|
||||
$tags = $query->getTags(true);
|
||||
if (!empty($tags)) {
|
||||
$query->setTags(
|
||||
new ArrayCollection(
|
||||
$this->getDoctrine()->getRepository(Tag::class)->findIdsByTagNameList(implode(',', $query->getTags()->toArray()))
|
||||
$this->getDoctrine()->getRepository(Tag::class)->findIdsByTagNameList(implode(',', $tags))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user