svn commit: r930507 - /ofbiz/trunk/applications/accounting/webapp/accounting/payment/manualTx.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r930507 - /ofbiz/trunk/applications/accounting/webapp/accounting/payment/manualTx.ftl

mor-2
Author: mor
Date: Sat Apr  3 11:54:40 2010
New Revision: 930507

URL: http://svn.apache.org/viewvc?rev=930507&view=rev
Log:
Fixed a potential NPE since ProductStore.storeName is an optional field.

Modified:
    ofbiz/trunk/applications/accounting/webapp/accounting/payment/manualTx.ftl

Modified: ofbiz/trunk/applications/accounting/webapp/accounting/payment/manualTx.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/payment/manualTx.ftl?rev=930507&r1=930506&r2=930507&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/payment/manualTx.ftl (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/payment/manualTx.ftl Sat Apr  3 11:54:40 2010
@@ -47,12 +47,12 @@ under the License.
         <td width="5">&nbsp;</td>
         <td width='74%'>
           <#if currentStore?has_content>
-            <div>${currentStore.storeName}</div>
+            <div><#if currentStore.storeName?exists>${currentStore.storeName}<#else>${currentStore.productStoreId}</#if></div>
             <input type="hidden" name="productStoreId" value="${currentStore.productStoreId}">
           <#else>
             <select name="productStoreId">
               <#list productStores as productStore>
-                <option value="${productStore.productStoreId}">${productStore.storeName}</option>
+                <option value="${productStore.productStoreId}"><#if productStore.storeName?exists>${productStore.storeName}<#else>${productStore.productStoreId}</#if></option>
               </#list>
             </select>
           </#if>