fix: [CRUD] Renamed confusing function
parent
697c1ff0a6
commit
851d9cfee7
|
@ -494,7 +494,7 @@ class CRUDComponent extends Component
|
|||
$this->Controller->set('filteringContexts', $filteringContexts);
|
||||
}
|
||||
|
||||
public function getParentsForMetaFields($query, array $metaConditions)
|
||||
public function setParentConditionsForMetaFields($query, array $metaConditions)
|
||||
{
|
||||
$metaTemplates = $this->MetaFields->MetaTemplates->find('list', [
|
||||
'keyField' => 'name',
|
||||
|
|
|
@ -38,7 +38,7 @@ class OrganisationsController extends AppController
|
|||
[
|
||||
'label' => __('ENISA CSIRT Network (GOV)'),
|
||||
'filterConditionFunction' => function($query) {
|
||||
return $this->CRUD->getParentsForMetaFields($query, [
|
||||
return $this->CRUD->setParentConditionsForMetaFields($query, [
|
||||
'ENISA CSIRT Network' => [
|
||||
[
|
||||
'field' => 'constituency',
|
||||
|
|
Loading…
Reference in New Issue