From 7fe22c48c0c75367a5463b98f2a188411a03c94e Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 12 Feb 2015 10:44:09 +1300 Subject: [PATCH] CRM-15954 set backoffice defaults for credit card to every one month NB I tested this with non-credit card & setting the defaults for fields that are not relevant or don't exist doesn't seem to matter, so I didn't see the need to 'if ' them --- CRM/Contribute/Form/Contribution.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 0f57712c08..7e67dc5595 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -353,6 +353,9 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP return $defaults; } + $defaults['frequency_interval'] = 1; + $defaults['frequency_unit'] = 'month'; + // Set soft credit defaults. CRM_Contribute_Form_SoftCredit::setDefaultValues($defaults, $this); -- 2.25.1