Commit 8d8a0b83 authored by mattwire's avatar mattwire
Browse files

Fix Stripe\!121 Drupal Webform: Recognize 0 installments as recurring.

parent 3dec3972
......@@ -12,6 +12,7 @@ Releases use the following numbering system:
## Release 0.9.9 (not yet released 2020-11-17)
* Trap and log exceptions triggered when calling repeatcontribution.
* Fix [Stripe!121](https://lab.civicrm.org/extensions/stripe/-/merge_requests/121) Drupal Webform: Recognize 0 installments as recurring.
## Release 0.9.8
......
......@@ -134,7 +134,7 @@
var isRecur = false;
// Auto-renew contributions for CiviCRM Webforms.
if (this.getIsDrupalWebform()) {
if (($('input[data-civicrm-field-key$="contribution_installments"]').length !== 0 && $('input[data-civicrm-field-key$="contribution_installments"]').val() > 1) ||
if (($('input[data-civicrm-field-key$="contribution_installments"]').length !== 0 && $('input[data-civicrm-field-key$="contribution_installments"]').val() != 1) ||
($('input[data-civicrm-field-key$="contribution_frequency_interval"]').length !== 0 && $('input[data-civicrm-field-key$="contribution_frequency_interval"]').val() > 0)
) {
isRecur = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment