Commit 7e4e21f3 authored by ErikHommel's avatar ErikHommel
Browse files

issue 7983 fix notice on dev test

parent a39a08aa
......@@ -22,11 +22,18 @@ class CRM_Nbrprojectvolunteerlist_Form_Search_VolunteerList extends CRM_Contact_
$formValues = array_merge($this->getEntityDefaults('study'), $formValues);
}
$eligibleParticipationStatus = Civi::settings()->get('nbr_eligible_calc_study_status');
$optionGroupId = CRM_Nihrbackbone_BackboneConfig::singleton()->getStudyParticipationStatusOptionGroupId();
if (!empty($eligibleParticipationStatus)) {
$optionGroupId = CRM_Nihrbackbone_BackboneConfig::singleton()->getStudyParticipationStatusOptionGroupId();
$parts = explode(',', $eligibleParticipationStatus);
foreach ($parts as $part) {
$this->_eligibleParticipationStatus[] = CRM_Nihrbackbone_Utils::getOptionValueLabel($part, $optionGroupId);
if (!is_array($eligibleParticipationStatus)) {
$parts = explode(',', $eligibleParticipationStatus);
foreach ($parts as $part) {
$this->_eligibleParticipationStatus[] = CRM_Nihrbackbone_Utils::getOptionValueLabel($part, $optionGroupId);
}
}
else {
foreach ($eligibleParticipationStatus as $part) {
$this->_eligibleParticipationStatus[] = CRM_Nihrbackbone_Utils::getOptionValueLabel($part, $optionGroupId);
}
}
}
parent::__construct($formValues);
......
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