Bugzilla – Attachment 149114 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: Add error if related user open but user is missing
Bug-33354-Add-error-if-related-user-open-but-user-.patch (text/plain), 2.20 KB, created by
Jonathan Druart
on 2023-04-04 07:35:42 UTC
(
hide
)
Description:
Bug 33354: Add error if related user open but user is missing
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-04-04 07:35:42 UTC
Size:
2.20 KB
patch
obsolete
>From f6a02f104d5dc9964f1a6dfd892b644cb6cfd23c Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 29 Mar 2023 15:09:37 +0000 >Subject: [PATCH] Bug 33354: Add error if related user open but user is missing > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../prog/js/vue/components/ERM/AgreementsFormAdd.vue | 9 +++++++++ > .../prog/js/vue/components/ERM/LicensesFormAdd.vue | 9 +++++++++ > 2 files changed, 18 insertions(+) > >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 bafe8ee1184..2e6c971ca3f 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 >@@ -318,6 +318,15 @@ export default { > ) > ) > } >+ agreement.user_roles.forEach((user, i) => { >+ if (user.patron_str === "") { >+ errors.push( >+ this.$__("Agreement user %s is missing a user").format( >+ i + 1 >+ ) >+ ) >+ } >+ }) > errors.forEach(function (e) { > setWarning(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 272253cadf3..e3f88d10f6d 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 >@@ -224,6 +224,15 @@ export default { > ) > ) > } >+ license.user_roles.forEach((user, i) => { >+ if (user.patron_str === "") { >+ errors.push( >+ this.$__("License user %s is missing a user").format( >+ i + 1 >+ ) >+ ) >+ } >+ }) > errors.forEach(function (e) { > setWarning(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