*/
protected $_prefix = 'contribute_';
+ /**
+ * @var bool
+ */
+ public $submitOnce = TRUE;
+
/**
* Explicitly declare the entity api name.
*/
// @todo - stop changing formValues - respect submitted form values, change a working array.
$this->_formValues['contribution_test'] = 0;
}
+ // We don't show template records in summaries or dashboards
+ if (empty($this->_formValues['is_template']) && $this->_force && !empty($this->_context) && ($this->_context === 'dashboard' || $this->_context === 'contribution')) {
+ // @todo - stop changing formValues - respect submitted form values, change a working array.
+ $this->_formValues['is_template'] = 0;
+ }
foreach ([
'contribution_amount_low',