You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2019/01/12 08:06:50 UTC

svn commit: r1851147 - /ofbiz/ofbiz-framework/trunk/applications/product/widget/catalog/ProductForms.xml

Author: ashish
Date: Sat Jan 12 08:06:50 2019
New Revision: 1851147

URL: http://svn.apache.org/viewvc?rev=1851147&view=rev
Log:
Fixed:Product tags section displays 'Update' button, despite of having no results 
(OFBIZ-9642)
Thanks Jagpreet for reporting and Anushi for providing the patch.

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

Modified: ofbiz/ofbiz-framework/trunk/applications/product/widget/catalog/ProductForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/widget/catalog/ProductForms.xml?rev=1851147&r1=1851146&r2=1851147&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/product/widget/catalog/ProductForms.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/product/widget/catalog/ProductForms.xml Sat Jan 12 08:06:50 2019
@@ -2369,10 +2369,10 @@ under the License.
         <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
     </form>
 
-    <form name="ListProductTag" type="multi" target="updateProductTag" title="" list-name=""
+    <form name="ListProductTag" type="multi" target="updateProductTag" title="" list-name="productKeywordList"
         odd-row-style="alternate-row" default-table-style="basic-table" paginate-target="EditProductTag" separate-columns="true">
         <actions>
-            <entity-condition entity-name="ProductKeyword">
+            <entity-condition entity-name="ProductKeyword" list="productKeywordList">
                 <condition-list combine="and">
                     <condition-expr field-name="keywordTypeId" operator="equals" value="KWT_TAG"/>
                     <condition-expr field-name="statusId" operator="equals" value="KW_PENDING"/>
@@ -2397,6 +2397,6 @@ under the License.
             </drop-down>
         </field>
         <field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><check/></field>
-        <field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
+        <field name="submitButton" title="${uiLabelMap.CommonUpdate}" use-when="productKeywordList.size != 0"><submit button-type="button"/></field>
     </form>
  </forms>