Skip to content

Commit 4b22f2b

Browse files
authored
Merge pull request #15284 from luizfiliperm/maintain-map-return-order
2 parents 79ceeeb + d0df328 commit 4b22f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-web-url-mappings/src/main/groovy/org/grails/web/mapping/mvc/UrlMappingsInfoHandlerAdapter.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class UrlMappingsInfoHandlerAdapter implements HandlerAdapter, ApplicationContex
121121
}
122122
else if (result instanceof Map) {
123123
String viewName = controllerClass.actionUriToViewName(action)
124-
def finalModel = new HashMap<String, Object>()
124+
def finalModel = new LinkedHashMap<String, Object>()
125125
def flashScope = webRequest.getFlashScope()
126126
if (!flashScope.isEmpty()) {
127127
def chainModel = flashScope.get(FlashScope.CHAIN_MODEL)

0 commit comments

Comments
 (0)