give subrequests access to the session (will not be used by respond())
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 29 Jul 2008 19:20:25 +0000 (19:20 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 29 Jul 2008 19:20:25 +0000 (19:20 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1379 9efc2488-bf62-4759-914b-345cdb29e865

src/perlmods/OpenSRF/Application.pm

index 08bd106..a93ba88 100644 (file)
@@ -529,7 +529,7 @@ sub run {
        if ( !UNIVERSAL::isa($req, 'OpenSRF::AppRequest') ) {
                $log->debug("Creating a SubRequest object", DEBUG);
                unshift @params, $req;
-               $req = OpenSRF::AppSubrequest->new;
+               $req = OpenSRF::AppSubrequest->new( session => $req->session );
        } else {
                $log->debug("This is a top level request", DEBUG);
        }