Skip to content

Commit

Permalink
[dictionary] Fix loading of dictionary module (#9227)
Browse files Browse the repository at this point in the history
The "Sex" data type is incorrectly returning an object instead of
an array for the field options of the dictionary because \Utility::getSexList
returns an associative array, not an array.
  • Loading branch information
driusan authored May 2, 2024
1 parent a7d2728 commit 5994d74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class CandidateQueryEngine extends \LORIS\Data\Query\SQLQueryEngine
"Demographics",
"Candidate Demographics",
);
$sexList = \Utility::getSexList();
$sexList = array_keys(\Utility::getSexList());
$t = new Enumeration(...$sexList);
$demographics = $demographics->withItems(
[
Expand Down

0 comments on commit 5994d74

Please # to comment.