X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm.php;h=0f6a1d407b0faa4089aff54964b7165d683eb518;hb=3457fb64aa465f91f9c07b9461f3f56b06b04427;hp=2133e397946544e32248c9dbfbf8ba05eedd5d24;hpb=0ce8483729744eef1649ad91f908fda25ee5223f;p=civicrm-core.git diff --git a/CRM/Admin/Form.php b/CRM/Admin/Form.php index 2133e39794..0f6a1d407b 100644 --- a/CRM/Admin/Form.php +++ b/CRM/Admin/Form.php @@ -1,9 +1,9 @@ _action & CRM_Core_Action::DELETE) { - $this->addButtons(array( - array( - 'type' => 'next', - 'name' => ts('Delete'), - 'isDefault' => TRUE, - ), - array( - 'type' => 'cancel', - 'name' => ts('Cancel'), - ), - ) - ); - } - elseif ($this->_action & CRM_Core_Action::VIEW) { + if ($this->_action & CRM_Core_Action::VIEW || $this->_action & CRM_Core_Action::PREVIEW) { $this->addButtons(array( array( 'type' => 'cancel', @@ -140,7 +126,7 @@ class CRM_Admin_Form extends CRM_Core_Form { $this->addButtons(array( array( 'type' => 'next', - 'name' => ts('Save'), + 'name' => $this->_action & CRM_Core_Action::DELETE ? ts('Delete') : ts('Save'), 'isDefault' => TRUE, ), array(