* Personal Campaign can now be passed in force mode
Passing pcpid=n with force=1 alloow to search on corresponding Personal
Campaign id
* Improves parameter passing
Now cope with both single value form (pcpid=n) and multivalue form
(pcpid[]=n&pcpid[]=m)
* Removed useless ++$n
* Fixed checkstyle warnings
* Operator spacing and comment indentation
$this->_defaults['contribution_status_id'] = array($status => 1);
}
+ $pcpid = (array) CRM_Utils_Request::retrieve('pcpid', 'String', $this);
+ if ($pcpid) {
+ // Add new pcpid to the tail of the array...
+ foreach ($pcpid as $pcpIdList) {
+ $this->_formValues['contribution_pcp_made_through_id'][] = $pcpIdList;
+ }
+ // and avoid any duplicate
+ $this->_formValues['contribution_pcp_made_through_id'] = array_unique($this->_formValues['contribution_pcp_made_through_id']);
+ }
+
$cid = CRM_Utils_Request::retrieve('cid', 'Positive', $this);
if ($cid) {