Commit ddc1fc02 authored by ErikHommel's avatar ErikHommel
Browse files

issue 6474 - only show eligibility if volunteer is selected

parent c7311060
## Version 1.35
* issue 6563: test comment to use ; as separator in data
* issue 6474: show eligibility only for selected volunteers
## Version 1.34
* issue 7756: phase 2 MSP improvements
......
......@@ -734,11 +734,16 @@ class CRM_Nbrprojectvolunteerlist_Form_Search_VolunteerList extends CRM_Contact_
break;
case 'nvpd_eligible_status_id':
if (empty($row[$fieldName])) {
$row[$fieldName] = "Eligible";
if ($row['study_status'] == "Selected") {
if (empty($row[$fieldName])) {
$row[$fieldName] = "Eligible";
}
else {
$row[$fieldName] = implode(', ', CRM_Nihrbackbone_NbrVolunteerCase::getEligibleDescriptions($row[$fieldName]));
}
}
else {
$row[$fieldName] = implode(', ', CRM_Nihrbackbone_NbrVolunteerCase::getEligibleDescriptions($row[$fieldName]));
$row[$fieldName] = "";
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment