Bug 32181: ERM - Fix 'filter by expired' when adding an agreement to EBSCO's package
We shouldn't change the current route (which will lead to change the view) when we are adding an agreement to a EBSCO's package Test plan: Go to E-Resource management / eHoldings / EBSCO / Packages Search for a package, select one Click "Add new agreement" Use the "Filter by expired" filter => Without this patch you are redirected to the package list view => With this patch applied the table is filtered as expected Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
356e136b0f
commit
ecec606572
1 changed files with 7 additions and 5 deletions
|
@ -115,11 +115,13 @@ export default {
|
|||
this.$emit("close")
|
||||
},
|
||||
filter_table: async function () {
|
||||
let new_route = build_url(
|
||||
"/cgi-bin/koha/erm/agreements",
|
||||
this.filters
|
||||
)
|
||||
this.$router.push(new_route)
|
||||
if (this.before_route_entered) {
|
||||
let new_route = build_url(
|
||||
"/cgi-bin/koha/erm/agreements",
|
||||
this.filters
|
||||
)
|
||||
this.$router.push(new_route)
|
||||
}
|
||||
if (this.filters.by_expired) {
|
||||
if (!this.filters.max_expiration_date)
|
||||
this.filters.max_expiration_date = new Date()
|
||||
|
|
Loading…
Reference in a new issue