Explorar el Código

indiv data definition

develop
Charly hace 3 años
padre
commit
0542eac706
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. +3
    -1
      Controller/IndividualData/IndividualDataAdminController.php
  2. +1
    -1
      Definition/Field/IndividualData/IndividualDataFieldDefinition.php

+ 3
- 1
Controller/IndividualData/IndividualDataAdminController.php Ver fichero

@@ -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 Ver fichero

@@ -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);

Cargando…
Cancelar
Guardar