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
This commit is contained in:
@@ -65,7 +65,7 @@ if (modelEntity) {
|
||||
}
|
||||
dynamicAutoEntityFieldSearchForm = dynamicAutoEntityFieldSearchForm + '</form></forms>'
|
||||
Document dynamicAutoEntityFieldSearchFormXml = UtilXml.readXmlDocument(dynamicAutoEntityFieldSearchForm, true, true)
|
||||
Map<String, ModelForm> modelFormMap = FormFactory.readFormDocument(dynamicAutoEntityFieldSearchFormXml, entityModelReader, dispatcher.getDispatchContext(), null)
|
||||
Map<String, ModelForm> modelFormMap = FormFactory.readFormDocument(dynamicAutoEntityFieldSearchFormXml, entityModelReader, dispatcher.getDispatchContext(), entityName)
|
||||
if (UtilValidate.isNotEmpty(modelFormMap)) {
|
||||
Map.Entry<String, ModelForm> entry = modelFormMap.entrySet().iterator().next()
|
||||
modelForm = entry.getValue()
|
||||
@@ -96,7 +96,7 @@ if (modelEntity) {
|
||||
'</form></forms>'
|
||||
//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<String, ModelForm> entry = modelFormMap.entrySet().iterator().next()
|
||||
modelForm = entry.getValue()
|
||||
|
||||
Reference in New Issue
Block a user