Commit 90afb59c authored by Jerome Mariette's avatar Jerome Mariette
Browse files

fix a bug with required field on multiple parameter

parent 38a2a563
......@@ -609,7 +609,10 @@ jQuery.validator.addMethod("mparam", function(value, element, params) {
},
afterValidate: function(isValid, value, row, prop, source) {
if (!isValid) {
$this.handsontable_errors[prop+"."+row] = $("#error_handsontable_"+prop.split("___")[0]).html();
// do not add this error if it's on the last row
if (this.countRows()-1 != row) {
$this.handsontable_errors[prop+"."+row] = $("#error_handsontable_"+prop.split("___")[0]).html();
}
} else {
try {
delete $this.handsontable_errors[prop+"."+row];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment