@@ -214,11 +198,11 @@ class CRM_Contact_Form_Task_Delete extends CRM_Contact_Form_Task {
$session->setStatus(ts("'%1' cannot be deleted because the information is used for special system purposes.",[1=>$name]),'Cannot Delete Domain Contact','error');
continue;
}
if($currentUserId==$cid&&!$this->_restore){
if($currentUserId==$cid){
$session->setStatus(ts("You are currently logged in as '%1'. You cannot delete yourself.",[1=>$name]),'Unable To Delete','error');
$message=ts('The following contact had been sharing an address with a contact you just deleted. Their address will no longer be shared, but has not been removed or altered.');
}
...
...
@@ -273,12 +249,61 @@ class CRM_Contact_Form_Task_Delete extends CRM_Contact_Form_Task {
$this->set('sharedAddressMessage',NULL);
}
$this->setRedirection();
}
/**
* Set the url for the contact to be redirected to.