This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch release17.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release17.12 by this push:
     new dfb702c  Fixed: In LookupProduct some categories don't show, only 
blank lines (OFBIZ-12368)
dfb702c is described below

commit dfb702cd9c02bffc4d3543f3c6cd79208acddc0f
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
AuthorDate: Tue Nov 9 10:03:31 2021 +0100

    Fixed: In LookupProduct some categories don't show, only blank lines 
(OFBIZ-12368)
    
    For now only description is shown. OOTB some categories have no description
    We can easily fix that by showing more info. I suggest to add categoryName 
and
    productCategoryId. That should be enough. There are then no blank lines 
since
    productCategoryId always show.
    
    This is anyway customisable by users
---
 applications/product/widget/catalog/FieldLookupForms.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/applications/product/widget/catalog/FieldLookupForms.xml 
b/applications/product/widget/catalog/FieldLookupForms.xml
index 3f8e093..9a843a6 100644
--- a/applications/product/widget/catalog/FieldLookupForms.xml
+++ b/applications/product/widget/catalog/FieldLookupForms.xml
@@ -35,7 +35,7 @@ under the License.
         </field>
         <field name="primaryProductCategoryId" 
title="${uiLabelMap.ProductPrimaryCategory}">
             <drop-down allow-empty="true">
-                <entity-options entity-name="ProductCategory" 
key-field-name="productCategoryId">
+                <entity-options entity-name="ProductCategory" 
key-field-name="productCategoryId" description="${description} ${categoryName} 
[${productCategoryId}]">
                     <entity-order-by field-name="description"/>
                 </entity-options>
             </drop-down>
@@ -377,4 +377,4 @@ under the License.
         <field name="costGlAccountTypeId" 
title="${uiLabelMap.ProductCostGlAccountTypeId}"><display/></field>
         <field name="offsettingGlAccountTypeId" 
title="${uiLabelMap.ProductOffsettingGlAccountTypeId}"><display/></field>
     </form>
-</forms>
\ No newline at end of file
+</forms>

Reply via email to