Skip to content
Snippets Groups Projects
Commit d612c2a6 authored by Dave Greenberg's avatar Dave Greenberg
Browse files

Merge pull request #1985 from kirkatcaat/upstream

Enable participant roles to be changed from counted to not counted (CRM-13761)
parents 1e45b6cd 74b187a2
No related branches found
No related tags found
No related merge requests found
......@@ -395,9 +395,13 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
}
}
// set db value of filter in params if filter is non editable
if ($this->_id && !array_key_exists('filter', $params) && !$this->_gName == 'participant_role') {
$params['filter'] = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $this->_id, 'filter', 'id');
// set value of filter if not present in params
if ($this->_id && !array_key_exists('filter', $params)) {
if ($this->_gName == 'participant_role') {
$params['filter'] = 0;
} else {
$params['filter'] = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $this->_id, 'filter', 'id');
}
}
$groupParams = array('name' => ($this->_gName));
......
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