feat(main): Add FAQ accordion
This commit is contained in:
@@ -45,6 +45,7 @@ final class CustomHtmlBlockQueryBuilder extends AbstractDoctrineQueryBuilder
|
||||
'wchb.`id_ws_customhtml`',
|
||||
'wchb.`title`',
|
||||
'wchg.`title` AS group_title',
|
||||
'wchb.`type`',
|
||||
'wchb.`active`',
|
||||
'wchb.`ordering`',
|
||||
'wchb.`date_add`'
|
||||
@@ -108,6 +109,12 @@ final class CustomHtmlBlockQueryBuilder extends AbstractDoctrineQueryBuilder
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($filterName === 'type') {
|
||||
$qb->andWhere('wchb.`type` = :type')
|
||||
->setParameter('type', pSQL($filterValue));
|
||||
continue;
|
||||
}
|
||||
|
||||
$qb->andWhere('wchb.`' . $filterName . '` LIKE :' . $filterName)
|
||||
->setParameter($filterName, '%' . pSQL($filterValue) . '%');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user