Null map values (#12017)
This commit is contained in:
parent
aef4001fde
commit
079689951d
|
|
@ -178,11 +178,11 @@ public class DatabaseChangelog2 {
|
||||||
.forEach(k -> {
|
.forEach(k -> {
|
||||||
if (k != null) {
|
if (k != null) {
|
||||||
final Object oldValue = unpublishedFormData.get(k);
|
final Object oldValue = unpublishedFormData.get(k);
|
||||||
unpublishedFormData.put(k, Map.of(
|
unpublishedFormData.put(k, new HashMap<>(Map.of(
|
||||||
"data", oldValue,
|
"data", oldValue,
|
||||||
"componentData", oldValue,
|
"componentData", oldValue,
|
||||||
"viewType", "component"
|
"viewType", "component"
|
||||||
));
|
)));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -232,11 +232,11 @@ public class DatabaseChangelog2 {
|
||||||
.forEach(k -> {
|
.forEach(k -> {
|
||||||
if (k != null) {
|
if (k != null) {
|
||||||
final Object oldValue = publishedFormData.get(k);
|
final Object oldValue = publishedFormData.get(k);
|
||||||
publishedFormData.put(k, Map.of(
|
publishedFormData.put(k, new HashMap<>(Map.of(
|
||||||
"data", oldValue,
|
"data", oldValue,
|
||||||
"componentData", oldValue,
|
"componentData", oldValue,
|
||||||
"viewType", "component"
|
"viewType", "component"
|
||||||
));
|
)));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -311,11 +311,11 @@ public class DatabaseChangelog2 {
|
||||||
}
|
}
|
||||||
if (key != null) {
|
if (key != null) {
|
||||||
formDataMap.put(key,
|
formDataMap.put(key,
|
||||||
Map.of(
|
new HashMap<>(Map.of(
|
||||||
"data", value,
|
"data", value,
|
||||||
"componentData", value,
|
"componentData", value,
|
||||||
"viewType", "component"
|
"viewType", "component"
|
||||||
));
|
)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user