adjust property name to make it work with changes calendar bundle

This commit is contained in:
Julie Lenaerts 2022-09-08 11:25:50 +02:00
parent c1c472f546
commit d0d7c0babf
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ final class AgentAggregator implements AggregatorInterface
public function alterQuery(QueryBuilder $qb, $data)
{
if (!in_array('caluser', $qb->getAllAliases(), true)) {
$qb->join('cal.user', 'caluser');
$qb->join('cal.mainUser', 'caluser');
}
$qb->addSelect('caluser.id AS agent_aggregator');

View File

@ -37,7 +37,7 @@ class AgentFilter implements FilterInterface
public function alterQuery(QueryBuilder $qb, $data)
{
$where = $qb->getDQLPart('where');
$clause = $qb->expr()->in('cal.user', ':agents');
$clause = $qb->expr()->in('cal.mainUser', ':agents');
if ($where instanceof Andx) {
$where->add($clause);