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

RG-118 fixed error notice menstion in comments as well as fixed other notices too

parent 1e9f751d
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,7 @@ class CRM_Grant_BAO_GrantProgram extends CRM_Grant_DAO_GrantProgram {
$grantPrograms[$dao->id] = $dao->label;
}
}
return $grantPrograms;
return empty($grantPrograms) ? array() : $grantPrograms;
}
static function contributionTypes() {
......
......@@ -57,7 +57,7 @@ class CRM_Grant_Form_GrantProgramView extends CRM_Core_Form {
$this->assign('grantProgramStatus', CRM_Grant_BAO_GrantProgram::getOptionName($values['status_id']));
$this->assign('contributionType', $contributionTypes[$values['financial_type_id']] );
$this->assign('grantProgramAlgorithm', CRM_Grant_BAO_GrantProgram::getOptionName( $values['allocation_algorithm']));
$this->assign('grant_program_id', $grantPrograms[$values['grant_program_id']]);
$this->assign('grant_program_id', empty($grantPrograms[$values['grant_program_id']]) ? NULL : $grantPrograms[$values['grant_program_id']]);
$grantTokens = array('label','name','total_amount',
'remainder_amount', 'allocation_date', 'is_active', 'is_auto_email');
......
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