do not attempt to delete unverified profile_id

This commit is contained in:
Marc Michalsky 2023-08-16 14:45:36 +02:00 committed by Jens Schuppe
parent 6f6b9e0599
commit c7e51b4d3c

View file

@ -160,7 +160,7 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
switch ($this->_op) { switch ($this->_op) {
case 'delete': case 'delete':
if ($this->profile_id) { if ($this->profile) {
CRM_Utils_System::setTitle(E::ts('Delete Twingle API profile <em>%1</em>', [1 => $this->profile->getName()])); CRM_Utils_System::setTitle(E::ts('Delete Twingle API profile <em>%1</em>', [1 => $this->profile->getName()]));
$this->addButtons([ $this->addButtons([
[ [