From: Pradeep Nayak Date: Sat, 4 May 2013 21:38:21 +0000 (+0530) Subject: --fixed for CRM-12511 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fdaee6293ab83fff8e30853499e487f03c12751c;p=civicrm-core.git --fixed for CRM-12511 ---------------------------------------- * CRM-12511: Upgrade error where DB has some membership types with minimum_fee IS NULL http://issues.civicrm.org/jira/browse/CRM-12511 --- diff --git a/CRM/Upgrade/Incremental/sql/4.3.beta4.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.3.beta4.mysql.tpl index aecd253271..7f3b28a34d 100644 --- a/CRM/Upgrade/Incremental/sql/4.3.beta4.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.3.beta4.mysql.tpl @@ -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