avoid double clicks on petition page
authorJamie McClelland <jm@mayfirst.org>
Fri, 1 Sep 2023 13:59:40 +0000 (09:59 -0400)
committerJamie McClelland <jm@mayfirst.org>
Fri, 1 Sep 2023 16:10:34 +0000 (12:10 -0400)
CRM/Campaign/Form/Petition/Signature.php

index 2c13088366147b52f541b55aa8b953c483c12f93..aed16cd246300809ee64e7d2502b557a570b387f 100644 (file)
@@ -116,6 +116,13 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
 
   protected $_image_URL;
 
+  /**
+   * Prevent double clicks from creating duplicate or blank records.
+   *
+   * @var bool
+   */
+  public $submitOnce = TRUE;
+
   /**
    */
   public function __construct() {