Skip to content
Snippets Groups Projects
Commit 8cb0c686 authored by Erik Hommel's avatar Erik Hommel
Browse files

fix #34 with array nonPreEntities

parent a84aeb1f
Branches
Tags
No related merge requests found
......@@ -22,7 +22,8 @@ class CRM_Civirules_Utils_PreData {
*
*/
public static function pre($op, $objectName, $objectId, $params) {
if ($op != 'edit') {
$nonPreEntities = array('GroupContact', 'EntityTag');
if ($op != 'edit' || in_array($objectName, $nonPreEntities)) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment