Bug 9032: (follow-up): send cookie with redirect
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 14 Mar 2014 14:14:14 +0000 (15:14 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 20 Apr 2014 21:25:35 +0000 (21:25 +0000)
Small fix to resolve a problem Dobrica noted on the bug report: if you
had to log in when accepting the share, the cookie was not passed
back to the server when redirecting to shelf display.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
opac/opac-shareshelf.pl

index 1ab31bd..9e12266 100755 (executable)
@@ -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 {