From 398ffbadbbb642176670576a7d5ec8177d412bdd Mon Sep 17 00:00:00 2001 From: Matthew Wire <mjw@mjwconsult.co.uk> Date: Sun, 13 Feb 2022 16:13:32 +0000 Subject: [PATCH] Improve CRM.payment.getIsRecur() --- js/crm.payment.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/crm.payment.js b/js/crm.payment.js index 6274844..c0aea35 100644 --- a/js/crm.payment.js +++ b/js/crm.payment.js @@ -172,6 +172,9 @@ * @returns {boolean} */ getIsRecur: function() { + if (!this.supportsRecur()) { + return false; + } var isRecur = false; // Auto-renew contributions for CiviCRM Webforms. if (this.getIsDrupalWebform()) { -- GitLab