From: deb.monish Date: Thu, 8 Dec 2016 11:49:55 +0000 (+0530) Subject: CRM-19294: Unable to continue on required file field X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1aedfc9855e49ae07b29b20f757149e348776649;p=civicrm-core.git CRM-19294: Unable to continue on required file field --- 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