From b87ddf1930945bc71fe33fc170f077c673c4d0bd 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 Content-Type: text/plain; charset=utf-8 Do not stay on the show train view. Signed-off-by: Laurence Rault Signed-off-by: Marcel de Rooy --- .../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.30.2