Skip to content

Commit

Permalink
[dictionary] Fix loading of dictionary module
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 committed May 2, 2024
1 parent aa80860 commit 19c2a93
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 19c2a93

Please # to comment.