From b235ea1327e88884fc8006e15f1f082332495ee9 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Thu, 8 Dec 2016 17:27:20 +0530 Subject: [PATCH] CRM-19294: Unable to continue on required file field --- CRM/Contribute/Form/ContributionBase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index 27ed15e117..e07ee1b1bb 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -738,6 +738,10 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { else { $viewOnlyFileValues[$key] = $fileValue; } + + // On viewOnly use-case (as in online contribution Confirm page) we no longer need to set + // required property because being required file is already uploaded while registration + $field['is_required'] = FALSE; } if ($profileContactType) { -- 2.25.1