CRM-15060 - don't load entire contacts table when reserving for survey.
authorJamie McClelland <jm@mayfirst.org>
Wed, 30 Jul 2014 13:50:32 +0000 (09:50 -0400)
committerJamie McClelland <jm@mayfirst.org>
Wed, 30 Jul 2014 13:50:32 +0000 (09:50 -0400)
----------------------------------------
* CRM-15060: reserving survey respondents causes wait while entire database query is executed
  https://issues.civicrm.org/jira/browse/CRM-15060

CRM/Campaign/BAO/Survey.php

index 14e0b71c11d9b8e0d139d651b3f4845959fb235f..2d13edd381b7b5c589f90f8b12e8f425f6b11b2d 100644 (file)
@@ -793,7 +793,7 @@ INNER JOIN  civicrm_contact contact_a ON ( activityTarget.contact_id = contact_a
         $voterLinks['reserve'] = array(
           'name' => 'reserve',
           'url' => 'civicrm/survey/search',
-          'qs' => 'sid=%%id%%&reset=1&op=reserve&force=1',
+          'qs' => 'sid=%%id%%&reset=1&op=reserve',
           'title' => ts('Reserve Respondents'),
         );
       }