fix cancel button when sending an individual email
authorJon Goldberg <jon@megaphonetech.com>
Tue, 14 Sep 2021 18:43:32 +0000 (14:43 -0400)
committerJon Goldberg <jon@megaphonetech.com>
Tue, 14 Sep 2021 18:43:32 +0000 (14:43 -0400)
CRM/Contact/Form/Task/EmailTrait.php

index d233dff33b0bb6d28ceff3ae4c253d3181139665..4bfa01b407fe008767727a9b2f7381d852793caf 100644 (file)
@@ -297,11 +297,8 @@ trait CRM_Contact_Form_Task_EmailTrait {
 
       $session = CRM_Core_Session::singleton();
       $session->replaceUserContext($url);
-      $this->addDefaultButtons(ts('Send Email'), 'upload', 'cancel');
-    }
-    else {
-      $this->addDefaultButtons(ts('Send Email'), 'upload');
     }
+    $this->addDefaultButtons(ts('Send Email'), 'upload', 'cancel');
 
     $fields = [
       'followup_assignee_contact_id' => [