diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index 7d23de39b09d..7136fd5a99f9 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -931,7 +931,7 @@ public static function buildSearchForm(&$form) { $form->add('text', 'contribution_amount_high', ts('To'), array('size' => 8, 'maxlength' => 8)); $form->addRule('contribution_amount_high', ts('Please enter a valid money value (e.g. %1).', array(1 => CRM_Utils_Money::format('99.99', ' '))), 'money'); - $form->addField('cancel_reason'); + $form->addField('cancel_reason', array('entity' => 'Contribution')); CRM_Core_Form_Date::buildDateRange($form, 'contribution_cancel_date', 1, '_low', '_high', ts('From:'), FALSE); $form->addElement('hidden', 'contribution_cancel_date_range_error'); diff --git a/CRM/Contribute/Page/DashBoard.php b/CRM/Contribute/Page/DashBoard.php index 244ba72482a8..920a0c03256a 100644 --- a/CRM/Contribute/Page/DashBoard.php +++ b/CRM/Contribute/Page/DashBoard.php @@ -108,7 +108,7 @@ public function run() { $this->preProcess(); $controller = new CRM_Core_Controller_Simple('CRM_Contribute_Form_Search', - ts('Contributions'), NULL + ts('Contributions'), CRM_Core_Action::BROWSE ); $controller->setEmbedded(TRUE);