Bugzilla – Attachment 148933 Details for
Bug 33354
Error 400 Bad Request when submitting form in ERM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33354: Show all form error messages in the warning dialog
Bug-33354-Show-all-form-error-messages-in-the-warn.patch (text/plain), 1.71 KB, created by
Pedro Amorim
on 2023-03-29 15:12:20 UTC
(
hide
)
Description:
Bug 33354: Show all form error messages in the warning dialog
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-03-29 15:12:20 UTC
Size:
1.71 KB
patch
obsolete
>From ca99bcda9fd11af66f99924127353974665eccbc Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 29 Mar 2023 15:11:43 +0000 >Subject: [PATCH] Bug 33354: Show all form error messages in the warning dialog > >--- > .../prog/js/vue/components/ERM/AgreementsFormAdd.vue | 4 +--- > .../prog/js/vue/components/ERM/LicensesFormAdd.vue | 4 +--- > 2 files changed, 2 insertions(+), 6 deletions(-) > >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 2e6c971ca3f..cafa96fae1a 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("<br>")) > 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 e3f88d10f6d..a36160a00c0 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("<br>")) > return !errors.length > }, > onSubmit(e) { >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33354
:
148931
|
148932
|
148933
|
149113
|
149114
|
149115
|
149854
|
149855
|
149856