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