*/
public $_id = NULL;
+ /**
+ * @var bool
+ */
+ public $submitOnce = TRUE;
+
/**
* Build the form object.
*/
$bao = new CRM_Core_BAO_PdfFormat();
$bao->savePdfFormat($values, $this->_id);
- $status = ts('Your new PDF Page Format titled <strong>%1</strong> has been saved.', [1 => $values['name']], ts('Saved'), 'success');
+ $status = ts('Your new PDF Page Format titled <strong>%1</strong> has been saved.', [1 => $values['name']]);
if ($this->_action & CRM_Core_Action::UPDATE) {
- $status = ts('Your PDF Page Format titled <strong>%1</strong> has been updated.', [1 => $values['name']], ts('Saved'), 'success');
+ $status = ts('Your PDF Page Format titled <strong>%1</strong> has been updated.', [1 => $values['name']]);
}
- CRM_Core_Session::setStatus($status);
+ CRM_Core_Session::setStatus($status, ts('Saved'), 'success');
}
}