mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-10 03:36:09 +01:00
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:
parent
22e75d4729
commit
d5ad0a66a8
2 changed files with 2 additions and 1 deletions
|
@ -78,6 +78,7 @@ class CategoryRepository extends Repository
|
||||||
. ' AND mm.fieldname = ' . $qb->createNamedParameter('categories')
|
. ' AND mm.fieldname = ' . $qb->createNamedParameter('categories')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$qb->where($qb->expr()->neq('category.uid', $qb->createNamedParameter(0)));
|
||||||
$qb->orderBy('category.title', 'asc');
|
$qb->orderBy('category.title', 'asc');
|
||||||
$qb->groupBy('category.uid');
|
$qb->groupBy('category.uid');
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,10 @@ use TYPO3\CMS\Core\Resource\ResourceFactory;
|
||||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||||
use TYPO3\CMS\Extbase\Configuration\ConfigurationManager;
|
use TYPO3\CMS\Extbase\Configuration\ConfigurationManager;
|
||||||
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
|
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
|
||||||
use TYPO3\CMS\Extbase\Domain\Model\Category;
|
|
||||||
use TYPO3\CMS\Extbase\Object\ObjectManager;
|
use TYPO3\CMS\Extbase\Object\ObjectManager;
|
||||||
use TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager;
|
use TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager;
|
||||||
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
|
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
|
||||||
|
use Wrm\Events\Domain\Model\Category;
|
||||||
use Wrm\Events\Domain\Model\Date;
|
use Wrm\Events\Domain\Model\Date;
|
||||||
use Wrm\Events\Domain\Model\Event;
|
use Wrm\Events\Domain\Model\Event;
|
||||||
use Wrm\Events\Domain\Model\Organizer;
|
use Wrm\Events\Domain\Model\Organizer;
|
||||||
|
|
Loading…
Reference in a new issue