From b2cda3e983f0c570d63edbb55fd281df78511d2e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 13 Feb 2012 12:12:25 -0500 Subject: [PATCH] [SIGNED-OFF] Bug 4912 - After editing private list, user should be redirect to private lists 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. Signed-off-by: Nicole C. Engard --- 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.2.3