Skip to content

CFM-291_filter_groups_by_member #196

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
add correct picker configuration
Ioannis committed May 4, 2024
commit a09b547c99e8d54079c6e3dcda53144e131c3139
11 changes: 10 additions & 1 deletion app/src/Lib/Traits/SearchFilterTrait.php
@@ -275,7 +275,7 @@ public function getSearchableAttributes(string $controller, string $vv_tz=null):
}

foreach ($this->filterMetadataFields() as $column => $type) {
// If the column is an array then we are accessing the Metadata fields. Skip
// If the column is an array, then we are accessing the Metadata fields. Skip
if(is_array($type)) {
continue;
}
@@ -342,4 +342,13 @@ public function getSearchFiltersExtras(): array
return $this->searchFiltersExtras;
}

/**
* Get View Vars
*
* @since COmanage Registry v5.0.0
*/
public function getViewVars(): array
{
return $this->viewVars;
}
}
6 changes: 4 additions & 2 deletions app/src/Model/Table/GroupsTable.php
@@ -173,9 +173,11 @@ public function initialize(array $config): void {
'picker' => [
'type' => 'person',
'configuration' => [
'for' => 'GroupMembers',
// For the Groups Filtering block we want to
// pick/GET from the entire CO pool of people
'action' => 'GET',
'groupId' => 581
// The co configuration will fall throught the default configuration
'for' => 'co'
]
]
]
2 changes: 1 addition & 1 deletion app/templates/element/filter/peoplePicker.php
@@ -1,6 +1,6 @@
<?php
/**
* COmanage Registry Top Filters Checkboxes
* COmanage Registry People Picker
*
* Portions licensed to the University Corporation for Advanced Internet
* Development, Inc. ("UCAID") under one or more contributor license agreements.