Pārlūkot izejas kodu

dataDefinition

develop
Charly pirms 3 gadiem
vecāks
revīzija
7385e2622e
2 mainītis faili ar 3 papildinājumiem un 9 dzēšanām
  1. +2
    -8
      Controller/IndividualData/IndividualDataAdminController.php
  2. +1
    -1
      Definition/Field/IndividualData/IndividualDataFieldDefinition.php

+ 2
- 8
Controller/IndividualData/IndividualDataAdminController.php Parādīt failu

@@ -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 Parādīt failu

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

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

Notiek ielāde…
Atcelt
Saglabāt