Sfoglia il codice sorgente

dataDefinition

develop
Charly 3 anni fa
parent
commit
7385e2622e
2 ha cambiato i file con 3 aggiunte e 9 eliminazioni
  1. +2
    -8
      Controller/IndividualData/IndividualDataAdminController.php
  2. +1
    -1
      Definition/Field/IndividualData/IndividualDataFieldDefinition.php

+ 2
- 8
Controller/IndividualData/IndividualDataAdminController.php Vedi File

@@ -61,15 +61,9 @@ abstract class IndividualDataAdminController extends AbstractAdminController
FieldCollection $fields,
FilterCollection $filters
): RepositoryQueryInterface {
return parent::createIndexRepositoryQuery(
$searchDto,
$entityDto,
$fields,
$filters
);

$repositoryQuery = parent::createIndexRepositoryQuery($searchDto, $entityDto, $fields, $filters);
if ($searchDto->getRequest()->get('status')) {
$status = $searchDto->getRequest()->get('status');
if ($status || $status == 0) {
$repositoryQuery->filterByStatus($searchDto->getRequest()->get('status'));
}
return $repositoryQuery;

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

@@ -29,7 +29,7 @@ class IndividualDataFieldDefinition extends AbstractFieldDefinition
parent::__construct($translatorAdmin);
}

public function configureFieldsIndex(): array
public function configureIndex(): array
{
return [
'firstname',

Loading…
Annulla
Salva