fix: [CRUD] Renamed confusing function

pull/40/head
mokaddem 2021-03-10 09:38:41 +01:00
parent 697c1ff0a6
commit 851d9cfee7
2 changed files with 2 additions and 2 deletions

View File

@ -494,7 +494,7 @@ class CRUDComponent extends Component
$this->Controller->set('filteringContexts', $filteringContexts); $this->Controller->set('filteringContexts', $filteringContexts);
} }
public function getParentsForMetaFields($query, array $metaConditions) public function setParentConditionsForMetaFields($query, array $metaConditions)
{ {
$metaTemplates = $this->MetaFields->MetaTemplates->find('list', [ $metaTemplates = $this->MetaFields->MetaTemplates->find('list', [
'keyField' => 'name', 'keyField' => 'name',

View File

@ -38,7 +38,7 @@ class OrganisationsController extends AppController
[ [
'label' => __('ENISA CSIRT Network (GOV)'), 'label' => __('ENISA CSIRT Network (GOV)'),
'filterConditionFunction' => function($query) { 'filterConditionFunction' => function($query) {
return $this->CRUD->getParentsForMetaFields($query, [ return $this->CRUD->setParentConditionsForMetaFields($query, [
'ENISA CSIRT Network' => [ 'ENISA CSIRT Network' => [
[ [
'field' => 'constituency', 'field' => 'constituency',