Commit fa178627 authored by jaapjansma's avatar jaapjansma

update on trying out form processor with loading defaults

parent 18f32213
......@@ -179,7 +179,7 @@ class CRM_FormProcessor_Form_RunFormProcessor extends CRM_Core_Form {
$params['version'] = 3;
$result = civicrm_api('FormProcessor', $this->formProcessorName, $params);
$this->assign('result_json', json_encode($result, JSON_PRETTY_PRINT));
if (!isset($default['is_error']) || !$default['is_error']) {
if (!isset($result['is_error']) || !$result['is_error']) {
$this->clearForm();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment