Bug 33354: Show all form error messages in the warning dialog

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Pedro Amorim 2023-03-29 15:11:43 +00:00 committed by Tomas Cohen Arazi
parent 816b1a3e3f
commit 98adcf957b
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 2 additions and 6 deletions

View file

@ -327,9 +327,7 @@ export default {
)
}
})
errors.forEach(function (e) {
setWarning(e)
})
setWarning(errors.join("<br>"))
return !errors.length
},
onSubmit(e) {

View file

@ -233,9 +233,7 @@ export default {
)
}
})
errors.forEach(function (e) {
setWarning(e)
})
setWarning(errors.join("<br>"))
return !errors.length
},
onSubmit(e) {