Merge pull request #1115 from mewtaylor/issue/gh-1112

Fix GH-1112: Update id string for general error message strings
This commit is contained in:
Matthew Taylor 2016-12-15 15:58:49 -05:00 committed by GitHub
commit 1b37ec232c

View file

@ -93,7 +93,7 @@ module.exports = {
callback = callback || function () {}; callback = callback || function () {};
if (!username) { if (!username) {
this.refs.form.refs.formsy.updateInputsWithError({ this.refs.form.refs.formsy.updateInputsWithError({
'user.username': formatMessage({id: 'teacherRegistration.validationRequired'}) 'user.username': formatMessage({id: 'form.validationRequired'})
}); });
return callback(false); return callback(false);
} }
@ -457,7 +457,7 @@ module.exports = {
onValidSubmit: function (formData, reset, invalidate) { onValidSubmit: function (formData, reset, invalidate) {
if (!formData.phone || formData.phone.national_number === '+') { if (!formData.phone || formData.phone.national_number === '+') {
return invalidate({ return invalidate({
'phone': this.props.intl.formatMessage({id: 'teacherRegistration.validationRequired'}) 'phone': this.props.intl.formatMessage({id: 'form.validationRequired'})
}); });
} }
return this.props.onNextStep(formData); return this.props.onNextStep(formData);
@ -582,7 +582,7 @@ module.exports = {
}} }}
validationErrors={{ validationErrors={{
minLength: formatMessage({ minLength: formatMessage({
id: 'teacherRegistration.validationRequired' id: 'form.validationRequired'
}) })
}} }}
required /> required />