Skip to content

Commit

Permalink
Merge pull request #490 from FitzwilliamMuseum/issue471
Browse files Browse the repository at this point in the history
Fix researcher profile
  • Loading branch information
portableant authored Aug 22, 2022
2 parents 1f392c7 + edeef6f commit e3395a0
Show file tree
Hide file tree
Showing 2 changed files with 208 additions and 191 deletions.
6 changes: 4 additions & 2 deletions app/Models/StaffProfiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public static function list(Request $request): LengthAwarePaginator
'limit' => $perPage,
'offset' => $offset,
'sort' => 'last_name',
'filter[research_active][in]' => 'yes'
'filter[research_active][in]' => 'yes',
'filter[employment_status][in]' => 'employed',
)
);
$staff = $api->getData();
Expand Down Expand Up @@ -63,7 +64,8 @@ public static function allstaff(Request $request): LengthAwarePaginator
'offset' => $offset,
'meta' => '*',
'sort' => 'last_name',
'filter[status][in]' => 'published'
'filter[status][in]' => 'published',
'filter[employment_status][in]' => 'employed',
)
);
$staff = $directus->getData();
Expand Down
Loading

0 comments on commit e3395a0

Please sign in to comment.