Skip to content
Snippets Groups Projects
Commit 518fd708 authored by Mayur Jadhav's avatar Mayur Jadhav
Browse files

Worked on RG-156

parent 15bfb433
No related branches found
No related tags found
No related merge requests found
......@@ -149,13 +149,6 @@ class CRM_Grant_PaymentTask
*/
static function getTask( $value )
{
self::tasks( );
if ( ! $value || ! CRM_Utils_Array::value( $value, self::$_tasks ) ) {
// make the print task by default
$value = 5;
}
return array( self::$_tasks[$value]['class' ],
self::$_tasks[$value]['result'] );
}
}
......@@ -874,7 +874,7 @@ function grantprograms_civicrm_postProcess($formName, &$form) {
*
*/
function grantprograms_civicrm_searchTasks($objectName, &$tasks) {
if ($objectName == 'grant') {
if ($objectName == 'grant' && !strstr($_GET['q'], 'payment/search')) {
$tasks[PAY_GRANTS] = array(
'title' => ts('Pay Grants'),
'class' => array('CRM_Grant_Form_Task_Pay',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment