diff --git a/core/modules/user/lib/Drupal/user/Form/UserCancelConfirm.php b/core/modules/user/lib/Drupal/user/Form/UserCancelConfirm.php index a88a3c2..da242ea 100644 --- a/core/modules/user/lib/Drupal/user/Form/UserCancelConfirm.php +++ b/core/modules/user/lib/Drupal/user/Form/UserCancelConfirm.php @@ -145,9 +145,9 @@ public function submitForm(array &$form, array &$form_state) { $this->account->user_cancel_method = $form_state['values']['user_cancel_method']; $this->account->user_cancel_notify = $form_state['values']['user_cancel_notify']; $this->account->save(); - _user_mail_notify('cancel_confirm', $this->account); + _user_mail_notify('cancel_confirm', $this->account->getBCEntity()); drupal_set_message(t('A confirmation request to cancel your account has been sent to your e-mail address.')); - watchdog('user', 'Sent account cancellation request to %name %email.', array('%name' => $this->account->label(), '%email' => '<' . $this->account->mail . '>'), WATCHDOG_NOTICE); + watchdog('user', 'Sent account cancellation request to %name %email.', array('%name' => $this->account->label(), '%email' => '<' . $this->account->mail->value . '>'), WATCHDOG_NOTICE); $form_state['redirect'] = 'user/' . $this->account->id(); }