You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2021/11/09 09:08:49 UTC
[ofbiz-framework] branch release18.12 updated: Fixed: In
LookupProduct some categories don't show, only blank lines (OFBIZ-12368)
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release18.12 by this push:
new 982e2d4 Fixed: In LookupProduct some categories don't show, only blank lines (OFBIZ-12368)
982e2d4 is described below
commit 982e2d43d2f652ae6f1447f9318f05c38e492561
Author: Jacques Le Roux <ja...@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>