Bugzilla – Attachment 149521 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 because agreements?by_expired=true is missing date
Bug-33490-Prevent-400-because-agreementsbyexpiredt.patch (text/plain), 1.79 KB, created by
Jonathan Druart
on 2023-04-12 10:24:15 UTC
(
hide
)
Description:
Bug 33490: Prevent 400 because agreements?by_expired=true is missing date
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-04-12 10:24:15 UTC
Size:
1.79 KB
patch
obsolete
>From 68d72b1dba57e3dc82ad3fcf73290a08acddb937 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 because agreements?by_expired=true is > missing date > >We need to update the filter THEN update the current route >--- > .../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 90e4f1b6c64..fba8c7fa5a7 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 >@@ -210,6 +210,12 @@ export default { > this.$emit("close") > }, > filter_table: async function () { >+ if (this.filters.by_expired) { >+ if (!this.filters.max_expiration_date) >+ this.filters.max_expiration_date = new Date() >+ .toISOString() >+ .substring(0, 10) >+ } > if (this.before_route_entered) { > let new_route = build_url( > "/cgi-bin/koha/erm/agreements", >@@ -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.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 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