*/
protected $_searchButtonName;
- /**
- * name of print button
- *
- * @var string
- * @access protected
- */
- protected $_printButtonName;
-
/**
* name of action button
*
* set the button names
*/
$this->_searchButtonName = $this->getButtonName('refresh');
- $this->_printButtonName = $this->getButtonName('next', 'print');
$this->_actionButtonName = $this->getButtonName('next', 'action');
$this->_done = FALSE;
}
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;
'toggleSelect',
NULL,
NULL,
- array('onclick' => "toggleTaskAction( true ); return toggleCheckboxVals('mark_x_',this);")
+ array('onclick' => "toggleTaskAction( true );", 'class' => 'select-rows')
);
foreach ($rows as $row) {
$this->addElement('checkbox', $row['checkbox'],
NULL, NULL,
- array('onclick' => "toggleTaskAction( true ); return checkSelectedBox('" . $row['checkbox'] . "');")
+ array('onclick' => "toggleTaskAction( true );", 'class' => 'select-row')
);
}
}
)
);
- $this->add('submit', $this->_printButtonName, ts('Print'),
- array(
- 'class' => 'form-submit',
- 'onclick' => "return checkPerformAction('mark_x', '" . $this->getName() . "', 1);",
- )
- );
-
// need to perform tasks on all or selected items ? using radio_ts(task selection) for it
$this->addElement('radio', 'radio_ts', NULL, '', 'ts_sel', array('checked' => 'checked'));
- $this->addElement('radio', 'radio_ts', NULL, '', 'ts_all', array('onclick' => $this->getName() . ".toggleSelect.checked = false; toggleCheckboxVals('mark_x_',this); toggleTaskAction( true );"));
+ $this->addElement('radio', 'radio_ts', NULL, '', 'ts_all', array('class' => 'select-rows', 'onclick' => $this->getName() . ".toggleSelect.checked = false; toggleTaskAction( true );"));
}
// add buttons
}
$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;
}
}
$this->set('queryParams', $this->_queryParams);
$buttonName = $this->controller->getButtonName();
- if ($buttonName == $this->_actionButtonName || $buttonName == $this->_printButtonName) {
+ if ($buttonName == $this->_actionButtonName) {
// check actionName and if next, then do not repeat a search, since we are going to the next page
// hack, make sure we reset the task values