Skip to content
Snippets Groups Projects
Commit bfcbdccf authored by jaapjansma's avatar jaapjansma
Browse files

api changes for managed entities

parent ac6cda92
Branches
Tags
No related merge requests found
......@@ -25,7 +25,7 @@ function civicrm_api3_civi_rule_action_create($params) {
if (!isset($params['id']) && empty($params['label'])) {
return civicrm_api3_create_error('Label can not be empty when adding a new CiviRule Action');
}
if (empty($params['class_name'])) {
if (empty($params['class_name']) && !isset($params['id'])) {
return civicrm_api3_create_error('Class_name can not be empty');
}
/*
......
......@@ -26,7 +26,7 @@ function civicrm_api3_civi_rule_condition_create($params) {
if (!isset($params['id']) && empty($params['label'])) {
return civicrm_api3_create_error('Label can not be empty when adding a new CiviRule Condition');
}
if (empty($params['class_name'])) {
if (empty($params['class_name']) && !isset($params['id'])) {
return civicrm_api3_create_error('Class_name can not be empty');
}
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment