Bugzilla – Attachment 149856 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.84 KB, created by
Martin Renvoize (ashimema)
on 2023-04-19 09:51:54 UTC
(
hide
)
Description:
Bug 33354: Show all form error messages in the warning dialog
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-04-19 09:51:54 UTC
Size:
1.84 KB
patch
obsolete
>From 4ca6e99f036356b2331cfb6205c0c69a67914595 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> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../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 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("<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 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("<br>")) > return !errors.length > }, > onSubmit(e) { >-- >2.40.0
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