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

$filters $filters
); );


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


return $queryBuilder; return $queryBuilder;
} }

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

->setFormTypeOption('entry_type', ProjectBoostType::class) ->setFormTypeOption('entry_type', ProjectBoostType::class)
->setFormTypeOption('by_reference', false) ->setFormTypeOption('by_reference', false)
->setRequired(false); ->setRequired(false);
$fields['projectinspiring'] = CollectionField::new('projectinspiring')
$fields['projectInspiring'] = CollectionField::new('projectinspiring')
->setFormTypeOption('entry_type', ProjectInspiringType::class) ->setFormTypeOption('entry_type', ProjectInspiringType::class)
->setFormTypeOption('by_reference', false) ->setFormTypeOption('by_reference', false)
->setRequired(false); ->setRequired(false);

Loading…
Cancel
Save