From a61c5f8f03854511855f849b6f5a476aff65474c Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Thu, 27 Dec 2018 18:54:59 +0000 Subject: [PATCH] Don't crash with missing class if action is not defined when opening new case --- CRM/Case/Form/Case.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Case/Form/Case.php b/CRM/Case/Form/Case.php index 8c2312c1c7..9e3e2897c3 100644 --- a/CRM/Case/Form/Case.php +++ b/CRM/Case/Form/Case.php @@ -87,6 +87,9 @@ class CRM_Case_Form_Case extends CRM_Core_Form { * Build the form object. */ public function preProcess() { + if (empty($this->_action)) { + $this->_action = CRM_Core_Action::ADD; + } $this->_caseId = CRM_Utils_Request::retrieve('id', 'Positive', $this); -- 2.25.1