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

redirect after condition form error didnt work

parent 05a8fc37
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,8 @@ class CRM_Civirules_Form_RuleCondition extends CRM_Core_Form {
*/
protected function createFormElements() {
$this->add('hidden', 'rule_id');
$this->add('hidden', 'rid');
$this->add('hidden', 'action');
/*
* add select list only if it is not the first condition
*/
......@@ -92,6 +94,8 @@ class CRM_Civirules_Form_RuleCondition extends CRM_Core_Form {
public function setDefaultValues() {
$defaults['rule_id'] = $this->ruleId;
$defaults['rid'] = $this->ruleId;
$defaults['action'] = 'add';
return $defaults;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment