From 916f78e6a9cb90eb638cec3d4e03de7f35db5ca9 Mon Sep 17 00:00:00 2001 From: kurund Date: Tue, 6 Aug 2013 02:36:48 +0530 Subject: [PATCH] removed quest related code --- CRM/Profile/Selector/Listings.php | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/CRM/Profile/Selector/Listings.php b/CRM/Profile/Selector/Listings.php index a3a9ed13d7..81b7310d6a 100644 --- a/CRM/Profile/Selector/Listings.php +++ b/CRM/Profile/Selector/Listings.php @@ -621,22 +621,9 @@ class CRM_Profile_Selector_Listings extends CRM_Core_Selector_Base implements CR 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]; } -- 2.25.1