From ef44868541bef6a5943f00eaf43c84bf71e9e10b Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 15 Aug 2020 21:43:21 -0400 Subject: [PATCH] required --- CRM/Core/Payment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index c08509a46e..b312c8e8d9 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -844,7 +844,7 @@ abstract class CRM_Core_Payment { 'size' => 5, 'maxlength' => 10, 'autocomplete' => 'off', - 'class' => 'required', + 'class' => ($isCVVRequired ? 'required' : ''), ], 'is_required' => $isCVVRequired, 'rules' => [ -- 2.25.1