From f4083a6f5c4e8bffdf081bdffa70afe3cbd5f4a5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 6 Jul 2023 10:43:05 +0200 Subject: [PATCH] Bug 30708: (bugfix) Redirect to train list view after the train is deleted Do not stay on the show train view. Signed-off-by: Laurence Rault Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- .../prog/js/vue/components/Preservation/TrainsShow.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue index 01505688e6..c006ac121c 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue @@ -352,6 +352,9 @@ export default { this.$__("Train %s deleted").format(train.name), true ) + this.$router.push( + "/cgi-bin/koha/preservation/trains" + ) }, error => {} ) -- 2.39.5