X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCampaign%2FForm%2FSearch.php;h=7d380334549a747f55939096953d66b051bd106a;hb=7d26615ff524db9845f4bf194866200627209a8e;hp=02c54b871d9469c842e760f9baba74ec365244a4;hpb=d2118be269bed42c1398dd8c4da996caeaed6006;p=civicrm-core.git diff --git a/CRM/Campaign/Form/Search.php b/CRM/Campaign/Form/Search.php index 02c54b871d..7d38033454 100644 --- a/CRM/Campaign/Form/Search.php +++ b/CRM/Campaign/Form/Search.php @@ -46,19 +46,20 @@ class CRM_Campaign_Form_Search extends CRM_Core_Form_Search { /** * Are we restricting ourselves to a single contact. * - * @var boolean + * @var bool */ protected $_single = FALSE; /** * Are we restricting ourselves to a single contact. * - * @var boolean + * @var bool */ protected $_limit = NULL; /** * Prefix for the controller. + * @var string */ protected $_prefix = "survey_"; @@ -339,11 +340,7 @@ class CRM_Campaign_Form_Search extends CRM_Core_Form_Search { //apply filter of survey contact type for search. $contactType = CRM_Campaign_BAO_Survey::getSurveyContactType(CRM_Utils_Array::value('campaign_survey_id', $this->_formValues)); - if ($contactType && in_array($this->_operation, array( - 'reserve', - 'interview', - )) - ) { + if ($contactType && in_array($this->_operation, ['reserve', 'interview'])) { $this->_formValues['contact_type'][$contactType] = 1; }