Fix probems with catgories

* make sure no empty category is listed in search filter
* fix type error in dd import
This commit is contained in:
Dirk Koritnik 2021-09-08 12:32:51 +02:00
parent 22e75d4729
commit d5ad0a66a8
2 changed files with 2 additions and 1 deletions

View file

@ -78,6 +78,7 @@ class CategoryRepository extends Repository
. ' AND mm.fieldname = ' . $qb->createNamedParameter('categories')
);
$qb->where($qb->expr()->neq('category.uid', $qb->createNamedParameter(0)));
$qb->orderBy('category.title', 'asc');
$qb->groupBy('category.uid');

View file

@ -14,10 +14,10 @@ use TYPO3\CMS\Core\Resource\ResourceFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Configuration\ConfigurationManager;
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
use TYPO3\CMS\Extbase\Domain\Model\Category;
use TYPO3\CMS\Extbase\Object\ObjectManager;
use TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager;
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
use Wrm\Events\Domain\Model\Category;
use Wrm\Events\Domain\Model\Date;
use Wrm\Events\Domain\Model\Event;
use Wrm\Events\Domain\Model\Organizer;