From bbd6590816282dca908125e3bc3bada2c5dca4ec Mon Sep 17 00:00:00 2001 From: Deepak Dixit Date: Sun, 10 Dec 2017 11:07:07 +0000 Subject: [PATCH] Fixed: Used entityName instead of null while using FormFactory.readFormDocument method, as this parameter is used to prepare formLocationCache, and its causing issue to view different entity from webtools. Now form will be cached based on enittyName#formName so it will working fine for all possible scenaraio git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817693 13f79535-47bb-0310-9956-ffa450edef68 --- framework/webtools/groovyScripts/entity/FindGeneric.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/webtools/groovyScripts/entity/FindGeneric.groovy b/framework/webtools/groovyScripts/entity/FindGeneric.groovy index 82772e1e6b..39bdc7a1d8 100644 --- a/framework/webtools/groovyScripts/entity/FindGeneric.groovy +++ b/framework/webtools/groovyScripts/entity/FindGeneric.groovy @@ -65,7 +65,7 @@ if (modelEntity) { } dynamicAutoEntityFieldSearchForm = dynamicAutoEntityFieldSearchForm + '' Document dynamicAutoEntityFieldSearchFormXml = UtilXml.readXmlDocument(dynamicAutoEntityFieldSearchForm, true, true) - Map modelFormMap = FormFactory.readFormDocument(dynamicAutoEntityFieldSearchFormXml, entityModelReader, dispatcher.getDispatchContext(), null) + Map modelFormMap = FormFactory.readFormDocument(dynamicAutoEntityFieldSearchFormXml, entityModelReader, dispatcher.getDispatchContext(), entityName) if (UtilValidate.isNotEmpty(modelFormMap)) { Map.Entry entry = modelFormMap.entrySet().iterator().next() modelForm = entry.getValue() @@ -96,7 +96,7 @@ if (modelEntity) { '' //Debug.logInfo(dynamicAutoEntityFieldForm, "") Document dynamicAutoEntityFieldListFormXml = UtilXml.readXmlDocument(dynamicAutoEntityFieldListForm, true, true) - modelFormMap = FormFactory.readFormDocument(dynamicAutoEntityFieldListFormXml, entityModelReader, dispatcher.getDispatchContext(), null) + modelFormMap = FormFactory.readFormDocument(dynamicAutoEntityFieldListFormXml, entityModelReader, dispatcher.getDispatchContext(), entityName) if (UtilValidate.isNotEmpty(modelFormMap)) { Map.Entry entry = modelFormMap.entrySet().iterator().next() modelForm = entry.getValue()