Bugzilla – Attachment 149604 Details for
Bug 33490
Agreements - Filter by expired results in error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33490: Prevent 400 on agreements?by_expired=true
Bug-33490-Prevent-400-on-agreementsbyexpiredtrue.patch (text/plain), 1.89 KB, created by
Martin Renvoize
on 2023-04-13 13:40:29 UTC
(
hide
)
Description:
Bug 33490: Prevent 400 on agreements?by_expired=true
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2023-04-13 13:40:29 UTC
Size:
1.89 KB
patch
obsolete
>From 4fb3c48a5af96319d7daaaa3f50fd346f9194889 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 12 Apr 2023 12:20:43 +0200 >Subject: [PATCH] Bug 33490: Prevent 400 on agreements?by_expired=true > >We need to update the filter THEN update the current route > >Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../prog/js/vue/components/ERM/AgreementsList.vue | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >index 90e4f1b6c6..a20d406fc2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >@@ -200,6 +200,12 @@ export default { > }, > table_url: function () { > let url = "/api/v1/erm/agreements" >+ if (this.filters.by_expired) { >+ if (!this.filters.max_expiration_date) >+ this.filters.max_expiration_date = new Date() >+ .toISOString() >+ .substring(0, 10) >+ } > if (this.filters.by_expired) > url += > "?max_expiration_date=" + this.filters.max_expiration_date >@@ -217,12 +223,6 @@ export default { > ) > this.$router.push(new_route) > } >- if (this.filters.by_expired) { >- if (!this.filters.max_expiration_date) >- this.filters.max_expiration_date = new Date() >- .toISOString() >- .substring(0, 10) >- } > this.$refs.table.redraw(this.table_url()) > }, > getTableColumns: function () { >-- >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 33490
:
149519
|
149521
|
149522
|
149523
|
149603
|
149604
|
149615
|
149643
|
149652
|
149661
|
149672
|
149673
|
149674
|
149675
|
149676
|
150038
|
150039
|
150040
|
150048
|
150194
|
150195
|
150196
|
150197
|
150198
|
150199
|
150200
|
150201