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

Worked on RG-156

parent 7b3c5146
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,13 @@ class CRM_Grant_PaymentTask {
* @access public
*/
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']);
}
}
......@@ -94,7 +94,7 @@ class CRM_Grant_StateMachine_PaymentSearch extends CRM_Core_StateMachine {
}
$this->_controller->set('task', $value);
return CRM_Grant_PaymentTask::getTask($value);
return !empty($value) ? CRM_Grant_PaymentTask::getTask($value) : CRM_Core_DAO::$_nullArray;
}
/**
......
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