Skip to content

Commit

Permalink
fixes unicity checks in forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Elorfin committed Jun 10, 2024
1 parent 100fb91 commit a0a42b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/main/app/Resources/modules/data/types/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,6 @@ function notExist(value, options = {}) {
})
.then(response => {
if (404 !== response.status) {
return response.json()
}

return Promise.resolve(null)
})
.then(response => {
if (response) {
return Promise.resolve(tval(options.unique.error || 'value_not_unique'))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const RegistrationMain = withRouter(
if (termOfService) {
dispatch(modalActions.showModal(MODAL_CONFIRM, {
icon: 'fa fa-fw fa-copyright',
title: trans('terms_of_service'),
title: trans('terms_of_service', {}, 'privacy'),
question: termOfService,
isHtml: true,
confirmButtonText: trans('accept_terms_of_service'),
Expand Down
2 changes: 2 additions & 0 deletions src/main/core/Resources/translations/platform.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,8 @@
"value": "Value",
"web": "Web",
"period": "Period",
"registration_mail_help": "Your account information will be sent to you by e-mail. (It may be put in your spam folder).",
"registration_validation_help": "Your account will only be accessible once you have activated it by clicking on the link sent to you by e-mail.",
"display_optional_fields": "Show optional fields",
"my_progression": "My progression",
"useful_links": "Useful links",
Expand Down

0 comments on commit a0a42b8

Please sign in to comment.