解决选择操作对话框未显示标题的BUG

This commit is contained in:
datagear 2019-03-09 19:21:26 +08:00
parent dfe51357ca
commit 38da83a123
1 changed files with 6 additions and 1 deletions

View File

@ -699,6 +699,8 @@ public class DataController extends AbstractSchemaModelConnController
{
final Object dataParam = getParamMap(request, "data");
final PropertyPath propertyPathObj = ModelUtils.toPropertyPath(propertyPath);
new VoidSchemaModelConnExecutor(request, response, springModel, schemaId, tableName, true)
{
@Override
@ -709,7 +711,7 @@ public class DataController extends AbstractSchemaModelConnController
Object data = modelDataConverter.convert(dataParam, model);
PropertyPathInfo propertyPathInfo = ModelUtils.toPropertyPathInfoConcrete(model, propertyPath, data);
PropertyPathInfo propertyPathInfo = ModelUtils.toPropertyPathInfoConcrete(model, propertyPathObj, data);
QueryResultMetaInfo queryResultMetaInfo = persistenceManager
.getQueryPropValueSourceQueryResultMetaInfo(cn, model, data, propertyPathInfo);
@ -726,6 +728,9 @@ public class DataController extends AbstractSchemaModelConnController
isMultipleSelect = MU.isMultipleProperty(propertyPathInfo.getPropertyTail());
springModel.addAttribute("isMultipleSelect", isMultipleSelect);
springModel.addAttribute(KEY_TITLE_DISPLAY_NAME,
ModelUtils.displayName(model, propertyPathObj, WebUtils.getLocale(request)));
}
}.execute();