<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
* form values that we will be using
*
* @var array
- * @access protected
+ * @access public
*/
- protected $_formValues;
+ public $_formValues;
/**
* the params that are sent to the query
}
function setDefaultValues() {
- if (!CRM_Utils_Array::value('contribution_status',
- $this->_defaults
- )) {
+ if (empty($this->_defaults
+['contribution_status'])) {
$this->_defaults['contribution_status'][1] = 1;
}
return $this->_defaults;
}
$config = CRM_Core_Config::singleton();
+ // CRM-13848
+ $financialType = CRM_Utils_Array::value('financial_type_id', $this->_formValues);
+ if ($financialType && is_array($financialType)) {
+ unset($this->_formValues['financial_type_id']);
+ foreach($financialType as $notImportant => $typeID) {
+ $this->_formValues['financial_type_id'][$typeID] = 1;
+ }
+ }
+
$tags = CRM_Utils_Array::value('contact_tags', $this->_formValues);
if ($tags && !is_array($tags)) {
unset($this->_formValues['contact_tags']);
if ($tags && is_array($tags)) {
unset($this->_formValues['contact_tags']);
foreach($tags as $notImportant => $tagID) {
- $this->_formValues['contact_tags'][$tagID] = 1;
+ $this->_formValues['contact_tags'][$tagID] = 1;
}
}
if ($group && is_array($group)) {
unset($this->_formValues['group']);
foreach($group as $notImportant => $groupID) {
- $this->_formValues['group'][$groupID] = 1;
+ $this->_formValues['group'][$groupID] = 1;
}
}