Skip to content

Commit

Permalink
fix exception on profile creation
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMichalsky committed Oct 5, 2023
1 parent fc0a33c commit 097a4fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CRM/Twingle/Form/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ public function buildQuickForm() {
}

// Verify that a profile with the given id exists.

if ($this->_op != 'copy') {
if ($this->_op != 'copy' && $this->_op != 'create') {
$this->profile_id = CRM_Utils_Request::retrieve('id', 'Int', $this);
$this->profile = CRM_Twingle_Profile::getProfile($this->profile_id);
}
Expand Down

0 comments on commit 097a4fc

Please sign in to comment.