removed quest related code
authorkurund <kurund@civicrm.org>
Mon, 5 Aug 2013 21:06:48 +0000 (02:36 +0530)
committerkurund <kurund@civicrm.org>
Mon, 5 Aug 2013 21:06:48 +0000 (02:36 +0530)
CRM/Profile/Selector/Listings.php

index a3a9ed13d7258fc14561cd43ae0d47afcc91002f..81b7310d6adeff99e01390b2a2535420f3469855 100644 (file)
@@ -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];
         }