Skip to content

Commit

Permalink
Merge pull request #13336 from mattwire/missingcaseaddaction
Browse files Browse the repository at this point in the history
Don't crash with missing class if action is not defined when opening new case
  • Loading branch information
seamuslee001 authored Dec 28, 2018
2 parents 10b86cc + a61c5f8 commit ac5895d
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 ac5895d

Please sign in to comment.