Skip to content

Commit

Permalink
Merge pull request #5234 from santoszv/viewmapbug
Browse files Browse the repository at this point in the history
View maps entries are not restored in "finally" block
  • Loading branch information
BalusC authored May 20, 2023
2 parents 4b48788 + 23a5d02 commit 75ab32d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ public UIViewRoot createMetadataView(FacesContext context) {
Map<String, Object> currentViewMap = currentViewRoot.getViewMap(false);

if (!isEmpty(currentViewMap)) {
currentViewMapShallowCopy = new HashMap<>(currentViewMap);
metadataView.getViewMap(true)
.putAll(new HashMap<>(currentViewMap));
.putAll(currentViewMapShallowCopy);
}
}

Expand Down

0 comments on commit 75ab32d

Please sign in to comment.