$specialParams = array(
'activity_type_id',
'status_id',
- 'activity_subject'
+ 'activity_subject',
);
$changeNames = array('status_id' => 'activity_status_id');
CRM_Contact_BAO_Query::processSpecialFormValue($this->_formValues, $specialParams, $changeNames);
* @return string
*/
public static function getWildCardedValue($wildcard, $op, $value) {
- if (!$value) {
- return;
- }
if ($wildcard && $op == 'LIKE') {
if (CRM_Core_Config::singleton()->includeWildCardInName && (substr($value, 0, 1) != '%')) {
return "%$value%";
else {
// if wildcard is already present return searchString as it is OR append and/or prepend with wildcard
$isWilcard = strstr($value, '%') ? FALSE : CRM_Core_Config::singleton()->includeWildCardInName;
- $formValues[$element] = array(
- 'LIKE' => self::getWildCardedValue($isWilcard, 'LIKE', $value)
- );
+ $formValues[$element] = array('LIKE' => self::getWildCardedValue($isWilcard, 'LIKE', $value));
}
}
}