diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue index 2e6c971ca3..cafa96fae1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue @@ -327,9 +327,7 @@ export default { ) } }) - errors.forEach(function (e) { - setWarning(e) - }) + setWarning(errors.join("
")) return !errors.length }, onSubmit(e) { diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormAdd.vue index e3f88d10f6..a36160a00c 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormAdd.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormAdd.vue @@ -233,9 +233,7 @@ export default { ) } }) - errors.forEach(function (e) { - setWarning(e) - }) + setWarning(errors.join("
")) return !errors.length }, onSubmit(e) {