From ba10d83141f05e3403fa0b1c74abf35c346fd513 Mon Sep 17 00:00:00 2001 From: Teo Sarca Date: Sun, 10 Dec 2017 13:56:13 +0200 Subject: [PATCH] HUEditorRowAttributesHelper.extractWidgetType: return Lookup for high volume lists https://github.com/metasfresh/metasfresh-webui-api/issues/727 --- .../web/handlingunits/HUEditorRowAttributesHelper.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/metas/ui/web/handlingunits/HUEditorRowAttributesHelper.java b/src/main/java/de/metas/ui/web/handlingunits/HUEditorRowAttributesHelper.java index 9b894ed61..5f0864159 100644 --- a/src/main/java/de/metas/ui/web/handlingunits/HUEditorRowAttributesHelper.java +++ b/src/main/java/de/metas/ui/web/handlingunits/HUEditorRowAttributesHelper.java @@ -147,7 +147,15 @@ public static final DocumentFieldWidgetType extractWidgetType(final IAttributeVa { if (attributeValue.isList()) { - return DocumentFieldWidgetType.List; + final I_M_Attribute attribute = attributeValue.getM_Attribute(); + if (attribute.isHighVolume()) + { + return DocumentFieldWidgetType.Lookup; + } + else + { + return DocumentFieldWidgetType.List; + } } else if (attributeValue.isStringValue()) {