X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm.php;h=0f6a1d407b0faa4089aff54964b7165d683eb518;hb=3457fb64aa465f91f9c07b9461f3f56b06b04427;hp=6f18f0060728c8970d7252db95614ca942463b5d;hpb=6628866da4eb17b8ff190928d8afdbee11526ae6;p=civicrm-core.git diff --git a/CRM/Admin/Form.php b/CRM/Admin/Form.php index 6f18f00607..0f6a1d407b 100644 --- a/CRM/Admin/Form.php +++ b/CRM/Admin/Form.php @@ -75,7 +75,7 @@ class CRM_Admin_Form extends CRM_Core_Form { } /** - * This function sets the default values for the form. MobileProvider that in edit/view mode + * This function sets the default values for the form. Note that in edit/view mode * the default values are retrieved from the database * * @access public @@ -112,7 +112,7 @@ class CRM_Admin_Form extends CRM_Core_Form { * @access public */ public function buildQuickForm() { - if ($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',