Bugzilla – Attachment 149115 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.78 KB, created by
Jonathan Druart
on 2023-04-04 07:35:45 UTC
(
hide
)
Description:
Bug 33354: Show all form error messages in the warning dialog
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-04-04 07:35:45 UTC
Size:
1.78 KB
patch
obsolete
>From 18e73ba741c35f6360db92d36023e631ad0fa034 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 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../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.25.1
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