From ef63d695f7b2977f869662c85a568075677032f7 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 19 Sep 2013 17:23:39 +0530 Subject: [PATCH] -- CRM-13231, minor fix to form rule ---------------------------------------- * CRM-13231: Incremental upgrade 4.3.4 fails if no COGS and EXP default account set http://issues.civicrm.org/jira/browse/CRM-13231 --- CRM/Contribute/Form/ManagePremiums.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/ManagePremiums.php b/CRM/Contribute/Form/ManagePremiums.php index 82d52b84b4..5d0c5ed553 100644 --- a/CRM/Contribute/Form/ManagePremiums.php +++ b/CRM/Contribute/Form/ManagePremiums.php @@ -250,7 +250,7 @@ class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form { } } // CRM-13231 financial type required if product has cost - if (CRM_Utils_Array::value('cost', $params)) { + if (CRM_Utils_Array::value('cost', $params) && !CRM_Utils_Array::value('financial_type_id', $params)) { $errors['financial_type_id'] = ts('Financial Type is required for product having cost.'); } $fileLocation = $files['uploadFile']['tmp_name']; -- 2.25.1