Hi Jacopo,

Do we need to apply this change to other ftls ??

There is an error on demo trunk ecommerce product detail page after
applying this change will fix the error, I tested on my local machine
and its working fine after applying this fix please have a look.

http://demo-trunk.ofbiz.apache.org/ecommerce/tiny-chrome-widget-WG-5569-p


Regards,
Ankit Jain



On Mon, May 28, 2012 at 1:06 PM,  <jaco...@apache.org> wrote:
> Author: jacopoc
> Date: Mon May 28 07:36:41 2012
> New Revision: 1343156
>
> URL: http://svn.apache.org/viewvc?rev=1343156&view=rev
> Log:
> Replaced "!= null" with "??" (that is a replacement for the deprecated 
> "exists" built-in).
>
> Modified:
>    
> ofbiz/trunk/applications/order/webapp/ordermgr/order/orderReportContactMechs.fo.ftl
>
> Modified: 
> ofbiz/trunk/applications/order/webapp/ordermgr/order/orderReportContactMechs.fo.ftl
> URL: 
> http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/order/orderReportContactMechs.fo.ftl?rev=1343156&r1=1343155&r2=1343156&view=diff
> ==============================================================================
> --- 
> ofbiz/trunk/applications/order/webapp/ordermgr/order/orderReportContactMechs.fo.ftl
>  (original)
> +++ 
> ofbiz/trunk/applications/order/webapp/ordermgr/order/orderReportContactMechs.fo.ftl
>  Mon May 28 07:36:41 2012
> @@ -81,7 +81,7 @@ under the License.
>     <#list orderPaymentPreferences as orderPaymentPreference>
>         <fo:block text-indent="0.2in">
>             <#assign paymentMethodType = 
> orderPaymentPreference.getRelatedOne("PaymentMethodType")?if_exists>
> -            <#if ((orderPaymentPreference != null) && 
> (orderPaymentPreference.getString("paymentMethodTypeId") == "CREDIT_CARD") && 
> (orderPaymentPreference.getString("paymentMethodId")?has_content))>
> +            <#if (orderPaymentPreference?? && 
> (orderPaymentPreference.getString("paymentMethodTypeId") == "CREDIT_CARD") && 
> (orderPaymentPreference.getString("paymentMethodId")?has_content))>
>                 <#assign creditCard = 
> orderPaymentPreference.getRelatedOne("PaymentMethod").getRelatedOne("CreditCard")>
>                 
> ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)}
>             <#else>
>
>

Reply via email to