Bug 11182: (follow-up) fix regression where session branch wasn't initialized
authorGalen Charlton <gmc@esilibrary.com>
Fri, 2 May 2014 20:25:22 +0000 (20:25 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 2 May 2014 20:25:22 +0000 (20:25 +0000)
commit160ed321bee5806d9f58b064a27b1c31c9ae3fe4
treec9352eb31b89647a887182890d0e638f17b992ef
parent0456f6ade08d3d741d5da6eb912c0f40e08deb8b
Bug 11182: (follow-up) fix regression where session branch wasn't initialized

C4::Context->userenv() won't return a valid value until the
user session set up, e.g., via get_template_and_user().  Consequently,
the change introduced by a previous commit for bug 11182 ended
up making it appear that when checking an item that fills a hold
that it always needs to be transferred.

This patch fixes the regression and moves the "no-branch-set" check
to where it belongs.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
circ/returns.pl