dev/core#528 - Advanced Search -> Contribution Tab and Contribution Dashboard returns...
authorJitendra Purohit <jitendra@fuzion.co.nz>
Fri, 16 Nov 2018 07:06:00 +0000 (12:36 +0530)
committerJitendra Purohit <jitendra@fuzion.co.nz>
Fri, 16 Nov 2018 07:06:00 +0000 (12:36 +0530)
CRM/Contribute/BAO/Query.php
CRM/Contribute/Page/DashBoard.php

index 7d23de39b09d4c35e596e4bf5665106a44df141c..7136fd5a99f9c706f6a7aecc08181a21974f1596 100644 (file)
@@ -931,7 +931,7 @@ class CRM_Contribute_BAO_Query extends CRM_Core_BAO_Query {
     $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');
 
index 244ba72482a822af84b61cd9336cbd1b2534294e..920a0c03256aa1a5ac7b1d0b156a878d94faaaee 100644 (file)
@@ -108,7 +108,7 @@ class CRM_Contribute_Page_DashBoard extends CRM_Core_Page {
     $this->preProcess();
 
     $controller = new CRM_Core_Controller_Simple('CRM_Contribute_Form_Search',
-      ts('Contributions'), NULL
+      ts('Contributions'), CRM_Core_Action::BROWSE
     );
     $controller->setEmbedded(TRUE);