elseif ($multipleSelectFields &&
array_key_exists($name, $multipleSelectFields)
) {
- // FIXME: Code related to the old CRM_Quest - should be removed
- $key = $name;
- $paramsNew = array($key => $result->$name);
- if ($key == 'test_tutoring') {
- $name = array($key => array('newName' => $key, 'groupName' => 'test'));
- // for readers group
- }
- elseif (substr($key, 0, 4) == 'cmr_') {
- $name = array(
- $key => array('newName' => $key,
- 'groupName' => substr($key, 0, -3),
- ));
- }
- else {
- $name = array($key => array('newName' => $key, 'groupName' => $key));
- }
+ $paramsNew = array($name => $result->$name);
+ $name = array($name => array('newName' => $name, 'groupName' => $name));
+
CRM_Core_OptionGroup::lookupValues($paramsNew, $name, FALSE);
$row[] = $paramsNew[$key];
}