Bugzilla – Attachment 182951 Details for
Bug 40067
"Receive shipments" should not open in a new tab/window
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40067: Simplify code
Bug-40067-Simplify-code.patch (text/plain), 1.39 KB, created by
Jonathan Druart
on 2025-06-04 12:49:23 UTC
(
hide
)
Description:
Bug 40067: Simplify code
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-06-04 12:49:23 UTC
Size:
1.39 KB
patch
obsolete
>From 555d330cccce3aef4c0ff780278b7affc0cce611 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 4 Jun 2025 14:47:40 +0200 >Subject: [PATCH] Bug 40067: Simplify code > >--- > .../intranet-tmpl/prog/js/vue/components/Link.vue | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Link.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Link.vue >index 36d136cdda5..4e62d632606 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Link.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Link.vue >@@ -38,12 +38,11 @@ export default { > methods: { > redirect(url) { > const redirectParams = url ? url : this.to; >- if (typeof redirectParams === "string") >- window.location.href = this.formatUrl(redirectParams); >- if (typeof redirectParams === "object") { >- const url = this.handleQuery(redirectParams); >- window.location.href = this.formatUrl(url); >- } >+ window.location.href = this.formatUrl( >+ typeof redirectParams === "object" >+ ? this.handleQuery(redirectParams) >+ : redirectParams >+ ); > }, > formatUrl(url) { > if (url.includes("http://") || url.includes("https://")) return url; >-- >2.34.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 40067
:
182934
|
182949
|
182950
|
182951
|
182972
|
182981
|
183000
|
183001
|
183002
|
183003