From ad9cc02affa1af1522a167d8ea650e4cce6bc330 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 --- .../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 01505688e69..c006ac121ce 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.25.1