Skip to content

Commit

Permalink
Merge pull request #1231 from soul2zimate/HAL-1991-main
Browse files Browse the repository at this point in the history
[HAL-1991] Fix AddUnmanagedDialog
  • Loading branch information
hpehl authored Nov 8, 2024
2 parents d972c22 + 6513c89 commit be7d07a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ private AttributeCollection getAttributes(String path) {
if (!map.containsKey(path)) {
for (Property p : attributes.asPropertyList()) {
ModelNode parentValue = p.getValue();
if (parentValue.hasDefined(TYPE) && parentValue.get(TYPE).asType().equals(ModelType.OBJECT)
// process also on LIST type if we're in request attributes.
boolean isRequestProperties = path.endsWith(REQUEST_PROPERTIES);
if (parentValue.hasDefined(TYPE) && (parentValue.get(TYPE).asType().equals(ModelType.OBJECT) || (isRequestProperties && parentValue.get(TYPE).asType().equals(ModelType.LIST)))
&& !parentValue.get(VALUE_TYPE).asString().equalsIgnoreCase(STRING)) {
for (Property nested : parentValue.get(VALUE_TYPE).asPropertyList()) {
ModelNode nestedValue = nested.getValue();
Expand Down

0 comments on commit be7d07a

Please sign in to comment.