Skip to content
Permalink
Browse files

WFCORE-3298: do not try to modify protected nodes

  • Loading branch information
michpetrov authored and jmesnil committed Apr 15, 2019
1 parent 5ed306d commit 1265e8a5c6e3f2a4651e8cd48ae10ddd68712b1e
@@ -234,10 +234,8 @@ public void validateParameter(String parameterName, ModelNode value) throws Oper
throw ControllerLogger.ROOT_LOGGER.invalidEnumValue(tuString, parameterName, toStringMap.keySet());
}
// Hack to store the allowed value in the model, not the user input
try {
if (!value.isProtected()) {
value.set(enumValue.toString());
} catch (Exception e) {
// node must be protected.
}
}
}

0 comments on commit 1265e8a

Please sign in to comment.
You can’t perform that action at this time.