From e440b03f384928cb76e1851fc51fbda48a075264 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 14 Mar 2014 15:14:14 +0100 Subject: [PATCH] Bug 9032: QA Follow-up: Send cookie with redirect Content-Type: text/plain; charset=utf-8 Small fix to resolve a problem Dobrica noted on the report. If you had to login when accepting the share, the cookie was not passed back to the server when redirecting to shelf display. Signed-off-by: Marcel de Rooy Accepted a share while logged in and while not logged in. --- opac/opac-shareshelf.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opac/opac-shareshelf.pl b/opac/opac-shareshelf.pl index 1ab31bd..9e12266 100755 --- a/opac/opac-shareshelf.pl +++ b/opac/opac-shareshelf.pl @@ -116,7 +116,7 @@ sub show_accept { if( AcceptShare($param->{shelfnumber}, $dbkey, $param->{loggedinuser} ) ) { notify_owner($param); #redirect to view of this shared list - print $param->{query}->redirect(SHELVES_URL.$param->{shelfnumber}); + print $param->{query}->redirect( -uri => SHELVES_URL.$param->{shelfnumber}, -cookie => $param->{cookie} ); exit; } else { -- 1.7.7.6