Skip to content
Snippets Groups Projects
Commit 8504bd85 authored by Revati Gawas's avatar Revati Gawas Committed by mattwire
Browse files

Fix recurring contribution issue on drupal webform

parent c63747b8
No related branches found
No related tags found
No related merge requests found
......@@ -509,6 +509,12 @@ CRM.$(function($) {
function getIsRecur() {
var isRecur = false;
// Auto-renew contributions for CiviCRM Webforms.
if (getIsDrupalWebform()) {
if($('input[id$="contribution-installments"]').length !== 0 && $('input[id$="contribution-installments"]').val() > 1 ) {
isRecur = true;
}
}
// Auto-renew contributions
if (document.getElementById('is_recur') !== null) {
if (document.getElementById('is_recur').type == 'hidden') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment