Skip to content

Commit

Permalink
Merge pull request silverstripe#1587 from creative-commoners/pulls/1.…
Browse files Browse the repository at this point in the history
…13/validation-result-adderror

FIX Validation error message with ValidationResult::addError
  • Loading branch information
GuySartorelli authored Sep 27, 2023
2 parents 2fea4a6 + 8c205f2 commit eaca9e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions client/src/containers/FormBuilderLoader/FormBuilderLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ class FormBuilderLoader extends Component {
...field,
message,
};
})
},
}),
// Non-field messages
messages: schema.errors.filter((error) => !error.field),
messages: schema.errors.filter((error) => !error.field),
},
};

// Can be safely discarded
Expand Down

0 comments on commit eaca9e7

Please sign in to comment.