Skip to content
Snippets Groups Projects
Commit ef63d695 authored by Pradeep Nayak's avatar Pradeep Nayak
Browse files

-- 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
parent 87f4e761
No related branches found
No related tags found
No related merge requests found
......@@ -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'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment