Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: 1.5
-
Component/s: Model Transformation System
-
Labels:None
Description
Simple conditional transforms where the results for the true and false conditions are strings returns the correct value, however if an object is used for the result the conditional expander no longer works.
In the example case below both the values from the true and false objects are used. Note: I've also had other cases where only the true condition is returned regardless of the conditionalPath value and others where an empty object is returned.
example:
var model =
{ a: "v1", b: "v2", con: false };
var rules = {
value: {
transform: {
type: "fluid.transforms.condition",
conditionPath: "con",
"true":
,
"false":
}
}
};
fluid.model.transform(model, rules);
Attachments
Issue Links
- relates to
-
FLUID-5251 conditional expander causes both options to be evaluated causing problems with the current output model
-
- Closed
-