svn commit: r906449 - /ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml

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

svn commit: r906449 - /ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml

jacopoc
Author: jacopoc
Date: Thu Feb  4 10:56:46 2010
New Revision: 906449

URL: http://svn.apache.org/viewvc?rev=906449&view=rev
Log:
If a productId that is not associated to an existing product is entered, the product related screens are now hidden to prevent the user to try to submit data for a non existing product.

Modified:
    ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml

Modified: ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml?rev=906449&r1=906448&r2=906449&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml (original)
+++ ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml Thu Feb  4 10:56:46 2010
@@ -83,7 +83,9 @@
                             </condition>
                             <widgets>
                                 <section>
-                                    <condition><not><if-empty field="product"/></not></condition>
+                                    <condition>
+                                        <not><if-empty field="product"/></not>
+                                    </condition>
                                     <widgets>
                                         <container>
                                             <label style="h1">${uiLabelMap[labelTitleProperty]} ${uiLabelMap.CommonFor}: ${product.internalName} [${uiLabelMap.CommonId}:${productId}]  ${${extraFunctionName}}</label>
@@ -107,7 +109,20 @@
                                         </container>
                                     </widgets>
                                 </section>
-                                <decorator-section-include name="body"/>
+                                <section>
+                                    <condition>
+                                        <or>
+                                            <not><if-empty field="product"/></not>
+                                            <if-empty field="productId"/>
+                                        </or>
+                                    </condition>
+                                    <widgets>
+                                        <decorator-section-include name="body"/>
+                                    </widgets>
+                                    <fail-widgets>
+                                        <label style="h3">${uiLabelMap.ProductNoExistingProductsFound}</label>
+                                    </fail-widgets>
+                                </section>
                             </widgets>
                             <fail-widgets>
                                 <label style="h3">${uiLabelMap.ProductCatalogViewPermissionError}</label>