From fa1786273da4f6cc1c8e1ad079a1e52d594a5f3c Mon Sep 17 00:00:00 2001 From: Jaap Jansma <jaap.jansma@civicoop.org> Date: Fri, 12 Jun 2020 10:49:41 +0200 Subject: [PATCH] update on trying out form processor with loading defaults --- CRM/FormProcessor/Form/RunFormProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/FormProcessor/Form/RunFormProcessor.php b/CRM/FormProcessor/Form/RunFormProcessor.php index 153db85..ebe9063 100644 --- a/CRM/FormProcessor/Form/RunFormProcessor.php +++ b/CRM/FormProcessor/Form/RunFormProcessor.php @@ -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(); } } -- GitLab