Browse Source

indiv data definition

develop
Charly 3 years ago
parent
commit
0542eac706
2 changed files with 4 additions and 2 deletions
  1. +3
    -1
      Controller/IndividualData/IndividualDataAdminController.php
  2. +1
    -1
      Definition/Field/IndividualData/IndividualDataFieldDefinition.php

+ 3
- 1
Controller/IndividualData/IndividualDataAdminController.php View File

@@ -62,7 +62,9 @@ abstract class IndividualDataAdminController extends AbstractAdminController
$filters
);

$queryBuilder->andWhere('entity.status = ' . $searchDto->getRequest()->get('status'));
if ($searchDto->getRequest()->get('status')) {
$queryBuilder->andWhere('entity.status = ' . $searchDto->getRequest()->get('status'));
}

return $queryBuilder;
}

+ 1
- 1
Definition/Field/IndividualData/IndividualDataFieldDefinition.php View File

@@ -67,7 +67,7 @@ class IndividualDataFieldDefinition extends AbstractFieldDefinition
->setFormTypeOption('entry_type', ProjectBoostType::class)
->setFormTypeOption('by_reference', false)
->setRequired(false);
$fields['projectinspiring'] = CollectionField::new('projectinspiring')
$fields['projectInspiring'] = CollectionField::new('projectinspiring')
->setFormTypeOption('entry_type', ProjectInspiringType::class)
->setFormTypeOption('by_reference', false)
->setRequired(false);

Loading…
Cancel
Save