----------------------------------------
* CRM-17069: Search for Contribution with campaign causes fatal error
https://issues.civicrm.org/jira/browse/CRM-17069
break;
case 'activity_campaign_id':
+ if (CRM_Utils_Array::value($op, $value)) {
+ $value = $value[$op];
+ }
$campParams = array(
'op' => $op,
'campaign' => $value,
$campaignIds[$campId] = $campId;
$campaignTitles[$campId] = $allCampaigns[$campId];
}
- if (count($campaignIds) > 1) {
- $op = 'IN';
- $campaignIds = '(' . implode(',', $campaignIds) . ')';
- }
- else {
- $campaignIds = reset($campaignIds);
- }
}
else {
$campaignIds = $campaign;
return;
case 'contribution_campaign_id':
+ if (CRM_Utils_Array::value($op, $value)) {
+ $value = $value[$op];
+ }
$campParams = array(
'op' => $op,
'campaign' => $value,
return;
case 'participant_campaign_id':
+ if (CRM_Utils_Array::value($op, $value)) {
+ $value = $value[$op];
+ }
$campParams = array(
'op' => $op,
'campaign' => $value,
return;
case 'member_campaign_id':
+ if (CRM_Utils_Array::value($op, $value)) {
+ $value = $value[$op];
+ }
$campParams = array(
'op' => $op,
'campaign' => $value,
return;
case 'pledge_campaign_id':
+ if (CRM_Utils_Array::value($op, $value)) {
+ $value = $value[$op];
+ }
$campParams = array(
'op' => $op,
'campaign' => $value,