--fixed for CRM-12511
authorPradeep Nayak <pradeep@pradeep.(none)>
Sat, 4 May 2013 21:38:21 +0000 (03:08 +0530)
committerPradeep Nayak <pradeep@pradeep.(none)>
Sat, 4 May 2013 21:38:21 +0000 (03:08 +0530)
----------------------------------------
* CRM-12511: Upgrade error where DB has some membership types with minimum_fee IS NULL
  http://issues.civicrm.org/jira/browse/CRM-12511

CRM/Upgrade/Incremental/sql/4.3.beta4.mysql.tpl

index aecd25327195f9748a3d830ce2661b9630be7771..7f3b28a34dce1225d2fb5bf7e60d0a91369e7c70 100644 (file)
@@ -21,5 +21,5 @@ cpfv.financial_type_id = cmt.financial_type_id,
     cpfv.description_{$locale} = cmt.description_{$locale},
   {/foreach}
 {/if}
-cpfv.amount = cmt.minimum_fee  
+cpfv.amount = IFNULL(cmt.minimum_fee, 0.00)    
 WHERE cps.is_quick_config = 1 AND cpfv.membership_type_id IS NOT NULL;
\ No newline at end of file