From 1aedfc9855e49ae07b29b20f757149e348776649 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Thu, 8 Dec 2016 17:19:55 +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 7bbff8c6c1..7bdec1a478 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -658,6 +658,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) { //Since we are showing honoree name separately so we are removing it from honoree profile just for display -- 2.25.1