Skip to content
Snippets Groups Projects
Unverified Commit 93fe0d75 authored by JonGold's avatar JonGold
Browse files

Fix Event Type is condition

parent 37625016
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
* Added condition: "Contact added by Contact (not) in Group(s)"
* Added action: "Update Numeric Value"
* Also check smartgroups for 'Contact in group' condition
* Fixed issue #67 ("Event Type is" condition doesn't work)
## Version 2.11
......
......@@ -12,7 +12,7 @@ class CRM_CivirulesConditions_Form_Event_EventType extends CRM_CivirulesConditio
$eventTypeList = civicrm_api3('OptionValue', 'get', array('option_group_id' => "event_type", 'options' => ['limit' => 0]));
$eventTypes = array();
foreach($eventTypeList['values'] as $eventType) {
$eventTypes[$eventType['id']] = $eventType['label'];
$eventTypes[$eventType['value']] = $eventType['label'];
}
return $eventTypes;
}
......
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