From 19c2a937d01c2a95074cd6cd51d4dfd1b933dbac Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Thu, 2 May 2024 08:57:47 -0400 Subject: [PATCH] [dictionary] Fix loading of dictionary module 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. --- modules/candidate_parameters/php/candidatequeryengine.class.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/candidate_parameters/php/candidatequeryengine.class.inc b/modules/candidate_parameters/php/candidatequeryengine.class.inc index 31a7e4c594e..a64b6057de4 100644 --- a/modules/candidate_parameters/php/candidatequeryengine.class.inc +++ b/modules/candidate_parameters/php/candidatequeryengine.class.inc @@ -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( [