Skip to content

Commit

Permalink
Don't crash with missing class if action is not defined when opening …
Browse files Browse the repository at this point in the history
…new case
  • Loading branch information
mattwire committed Dec 27, 2018
1 parent f01f6ac commit a61c5f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Case/Form/Case.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a61c5f8

Please sign in to comment.