Bugzilla – Attachment 148932 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.13 KB, created by
Pedro Amorim
on 2023-03-29 15:12:18 UTC
(
hide
)
Description:
Bug 33354: Add error if related user open but user is missing
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-03-29 15:12:18 UTC
Size:
2.13 KB
patch
obsolete
>From fa671a4ccd006b489df428e4b3293db77fda2447 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 > >--- > .../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.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