From af96895ae565e8f42934dfdd594c70dfd00aaa5d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 13 Feb 2012 12:12:25 -0500 Subject: [PATCH] Bug 4912 - After editing private list, user should be redirect to private lists Content-Type: text/plain; charset="utf-8" As far as I can tell there isn't a redirect in the code which is triggered in the wake of a ModShelf() action. This patch adds a redirect. To test, edit the details of a private and public list in the OPAC and staff client and confirm that you are redirected to a view of that list's contents after saving. --- C4/VirtualShelves/Page.pm | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm index cfa4f60..c2e74af 100644 --- a/C4/VirtualShelves/Page.pm +++ b/C4/VirtualShelves/Page.pm @@ -160,6 +160,8 @@ sub shelfpage ($$$$$) { }; ModShelf( $shelfnumber, $shelf ); + print $query->redirect( $pages{$type}->{redirect} . "?viewshelf=$shelfnumber" ); + exit; } elsif ( $op eq 'modif' ) { my ( $shelfnumber2, $shelfname, $owner, $category, $sortfield ) = GetShelf($shelfnumber); -- 1.7.3