Skip to content

Commit

Permalink
add middle name as a filtering option
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Aug 23, 2024
1 parent d0fc590 commit 9ef6579
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/src/Model/Table/PeopleTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ public function initialize(array $config): void {
// XXX expand/revise this as needed to work best with looking up the related models
$this->setFilterConfig([
'family' => [
'type' => 'string',
'model' => 'Names',
'active' => true,
'order' => 3
],
'middle' => [
'type' => 'string',
'model' => 'Names',
'active' => true,
Expand All @@ -200,7 +206,7 @@ public function initialize(array $config): void {
'type' => 'string',
'model' => 'EmailAddresses',
'active' => true,
'order' => 3
'order' => 5
],
'identifier' => [
'type' => 'string',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default {
queryParams.append('identifier', query)
queryParams.append('mail', query)
queryParams.append('given', query)
queryParams.append('middle', query)
queryParams.append('family', query)
if(this.api.viewConfigParameters.groupId != undefined) {
queryParams.append('group_id', this.api.viewConfigParameters.groupId)
Expand Down

0 comments on commit 9ef6579

Please sign in to comment.