Skip to content
Permalink
Browse files

Merge pull request #3737 from michpetrov/wfcore-3298

WFCORE-3298: do not try to modify protected nodes
  • Loading branch information
jmesnil committed Apr 29, 2019
2 parents b481ea8 + 0d4059b commit d21028058dc8f1948b56e82604be156cbf00cb71
@@ -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 d210280

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