Merge pull request #11907 from mattwire/contribution_financialtype_fix
[civicrm-core.git] / CRM / Profile / Form / Edit.php
index 99348457ff5531773fcbf3583f7aa1202a1e5952..c01a868c0649259bb9f180ad259cf5d052ee4f5c 100644 (file)
@@ -222,6 +222,7 @@ SELECT module,is_reserved
 
     $cancelButtonValue = !empty($this->_ufGroup['cancel_button_text']) ? $this->_ufGroup['cancel_button_text'] : ts('Cancel');
     $this->assign('cancelButtonText', $cancelButtonValue);
+    $this->assign('includeCancelButton', CRM_Utils_Array::value('add_cancel_button', $this->_ufGroup));
 
     if (($this->_multiRecord & CRM_Core_Action::DELETE) && $this->_recordExists) {
       $this->_deleteButtonName = $this->getButtonName('upload', 'delete');