diff --git a/Src/knockout.validation.js b/Src/knockout.validation.js index ab1422c3..882fd3f8 100644 --- a/Src/knockout.validation.js +++ b/Src/knockout.validation.js @@ -373,12 +373,13 @@ // } // )}; // - if (params.message || params.onlyIf) { //if it has a message or condition object, then its an object literal to use + if (params.message || params.onlyIf || params.constraintGroupId) { //if it has a message or condition object, then its an object literal to use return exports.addRule(observable, { rule: ruleName, message: params.message, params: utils.isEmptyVal(params.params) ? true : params.params, - condition: params.onlyIf + condition: params.onlyIf, + constraintGroupId: params.constraintGroupId }); } else { return exports.addRule(observable, {