Author: pawan
Date: Thu Jun 20 10:39:58 2019
New Revision: 1861683

URL: http://svn.apache.org/viewvc?rev=1861683&view=rev
Log:
Improved: Create New Product Promo screen should have Create Button instead of 
Update.
(OFBIZ-11104)

Modified:
    
ofbiz/ofbiz-framework/trunk/applications/product/widget/catalog/PromoForms.xml

Modified: 
ofbiz/ofbiz-framework/trunk/applications/product/widget/catalog/PromoForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/widget/catalog/PromoForms.xml?rev=1861683&r1=1861682&r2=1861683&view=diff
==============================================================================
--- 
ofbiz/ofbiz-framework/trunk/applications/product/widget/catalog/PromoForms.xml 
(original)
+++ 
ofbiz/ofbiz-framework/trunk/applications/product/widget/catalog/PromoForms.xml 
Thu Jun 20 10:39:58 2019
@@ -59,7 +59,8 @@ under the License.
         </field>
         <field name="overrideOrgPartyId"><lookup 
target-form-name="LookupPartyName"/></field>
 
-        <field name="submitButton" title="${uiLabelMap.CommonUpdate}" 
widget-style="smallSubmit"><submit button-type="button"/></field>
+        <field use-when="productPromo!=null" name="submitButton" 
title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit 
button-type="button"/></field>
+        <field use-when="productPromo==null" name="submitButton" 
title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit 
button-type="button"/></field>
 
         <field use-when="productPromo!=null" name="lastUpdatedByText" 
title="${uiLabelMap.ProductLastModifiedBy}:">
             <display description="[${productPromo.lastModifiedByUserLogin}] 
${uiLabelMap.CommonOn} ${productPromo.lastModifiedDate}" also-hidden="false"/>


Reply via email to