Merge pull request #18033 from eileenmcnaughton/cont_id
[civicrm-core.git] / CRM / Mailing / Form / Unsubscribe.php
index 4f2c4f78747be87579de2e9c831513ec5ad13c69..95a675965955cdc94a9d15d1de94864963300984 100644 (file)
  */
 class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form {
 
+  /**
+   * Prevent people double-submitting the form (e.g. by double-clicking).
+   * https://lab.civicrm.org/dev/core/-/issues/1773
+   *
+   * @var bool
+   */
+  public $submitOnce = TRUE;
+
   public function preProcess() {
 
     $this->_type = 'unsubscribe';