You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bi...@apache.org on 2009/01/26 11:59:38 UTC

svn commit: r737671 - in /ofbiz/trunk/applications: ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl order/webapp/ordermgr/entry/catalog/configproductdetail.ftl

Author: bibryam
Date: Mon Jan 26 10:59:37 2009
New Revision: 737671

URL: http://svn.apache.org/viewvc?rev=737671&view=rev
Log:
Fixed NPE in configurable product screen reported by Amit in user list.

Modified:
    ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl
    ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/configproductdetail.ftl

Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl?rev=737671&r1=737670&r2=737671&view=diff
==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl Mon Jan 26 10:59:37 2009
@@ -366,7 +366,7 @@
         <form name="addToShoppingList" method="post" action="<@ofbizUrl>addItemToShoppingList<#if requestAttributes._CURRENT_VIEW_?exists>/${requestAttributes._CURRENT_VIEW_}</#...@ofbizUrl>">
           <input type="hidden" name="productId" value="${product.productId}">
           <input type="hidden" name="product_id" value="${product.productId}">
-          <input type="hidden" name="configId" value="${configId}">
+          <input type="hidden" name="configId" value="${configId?if_exists}">
           <select name="shoppingListId">
             <#if shoppingLists?has_content>
               <#list shoppingLists as shoppingList>

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/configproductdetail.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/configproductdetail.ftl?rev=737671&r1=737670&r2=737671&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/configproductdetail.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/configproductdetail.ftl Mon Jan 26 10:59:37 2009
@@ -366,7 +366,7 @@
         <form name="addToShoppingList" method="post" action="<@ofbizUrl>addItemToShoppingList<#if requestAttributes._CURRENT_VIEW_?exists>/${requestAttributes._CURRENT_VIEW_}</#...@ofbizUrl>">
           <input type="hidden" name="productId" value="${product.productId}">
           <input type="hidden" name="product_id" value="${product.productId}">
-          <input type="hidden" name="configId" value="${configId}">
+          <input type="hidden" name="configId" value="${configId?if_exists}">
           <select name="shoppingListId">
             <#if shoppingLists?has_content>
               <#list shoppingLists as shoppingList>



Re: svn commit: r737671 - in /ofbiz/trunk/applications: ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl order/webapp/ordermgr/entry/catalog/configproductdetail.ftl

Posted by Amit Sharma <am...@hotwaxmedia.com>.
Thanks a lot Bilgin

--
Regards
Amit Sharma

bibryam@apache.org wrote:
> Author: bibryam
> Date: Mon Jan 26 10:59:37 2009
> New Revision: 737671
>
> URL: http://svn.apache.org/viewvc?rev=737671&view=rev
> Log:
> Fixed NPE in configurable product screen reported by Amit in user list.
>
> Modified:
>     ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl
>     ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/configproductdetail.ftl
>
> Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl?rev=737671&r1=737670&r2=737671&view=diff
> ==============================================================================
> --- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl (original)
> +++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl Mon Jan 26 10:59:37 2009
> @@ -366,7 +366,7 @@
>          <form name="addToShoppingList" method="post" action="<@ofbizUrl>addItemToShoppingList<#if requestAttributes._CURRENT_VIEW_?exists>/${requestAttributes._CURRENT_VIEW_}</#...@ofbizUrl>">
>            <input type="hidden" name="productId" value="${product.productId}">
>            <input type="hidden" name="product_id" value="${product.productId}">
> -          <input type="hidden" name="configId" value="${configId}">
> +          <input type="hidden" name="configId" value="${configId?if_exists}">
>            <select name="shoppingListId">
>              <#if shoppingLists?has_content>
>                <#list shoppingLists as shoppingList>
>
> Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/configproductdetail.ftl
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/configproductdetail.ftl?rev=737671&r1=737670&r2=737671&view=diff
> ==============================================================================
> --- ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/configproductdetail.ftl (original)
> +++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/configproductdetail.ftl Mon Jan 26 10:59:37 2009
> @@ -366,7 +366,7 @@
>          <form name="addToShoppingList" method="post" action="<@ofbizUrl>addItemToShoppingList<#if requestAttributes._CURRENT_VIEW_?exists>/${requestAttributes._CURRENT_VIEW_}</#...@ofbizUrl>">
>            <input type="hidden" name="productId" value="${product.productId}">
>            <input type="hidden" name="product_id" value="${product.productId}">
> -          <input type="hidden" name="configId" value="${configId}">
> +          <input type="hidden" name="configId" value="${configId?if_exists}">
>            <select name="shoppingListId">
>              <#if shoppingLists?has_content>
>                <#list shoppingLists as shoppingList>
>
>
>
>