fix exception on profile creation

This commit is contained in:
Marc Michalsky 2023-10-05 14:32:29 +02:00 committed by Jens Schuppe
parent aef1ae7396
commit f81b476a30

View file

@ -149,8 +149,7 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
} }
// Verify that a profile with the given id exists. // Verify that a profile with the given id exists.
if ($this->_op != 'copy' && $this->_op != 'create') {
if ($this->_op != 'copy') {
$this->profile_id = CRM_Utils_Request::retrieve('id', 'Int', $this); $this->profile_id = CRM_Utils_Request::retrieve('id', 'Int', $this);
$this->profile = CRM_Twingle_Profile::getProfile($this->profile_id); $this->profile = CRM_Twingle_Profile::getProfile($this->profile_id);
} }