Author: lektran
Date: Thu Dec  6 23:01:57 2007
New Revision: 602008

URL: http://svn.apache.org/viewvc?rev=602008&view=rev
Log:
protect against null, reported by Case Torres

Modified:
    
ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/appendorderitem.ftl

Modified: 
ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/appendorderitem.ftl
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/appendorderitem.ftl?rev=602008&r1=602007&r2=602008&view=diff
==============================================================================
--- 
ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/appendorderitem.ftl
 (original)
+++ 
ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/appendorderitem.ftl
 Thu Dec  6 23:01:57 2007
@@ -37,7 +37,7 @@
             <td>
               <form method="post" 
action="<@ofbizUrl>appendItemToOrder?${paramString}</@ofbizUrl>" 
name="appendItemForm" style="margin: 0;">
               <#-- TODO: Presently, this is the ofbiz way of getting the 
prodCatalog, which is not generic. Replace with a selecatble list defaulting to 
this instead -->
-              <input type="hidden" name="prodCatalogId" 
value="${Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(request)}"/>
+              <input type="hidden" name="prodCatalogId" 
value="${Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(request)?if_exists}"/>
               <table border="0">
                 <tr>
                   <td align="right"><div 
class="tableheadtext">${uiLabelMap.ProductProductId} :</div></td>


Reply via email to