[Koha-bugs] [Bug 7595] Add branchcode to accountlines
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Aug 18 18:03:31 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7595
--- Comment #27 from Kyle M Hall <kyle at bywatersolutions.com> ---
Good catch. I've updated all references to branchcode to check for the
existance of userenv first.
(In reply to M. Tompsett from comment #24)
> Comment on attachment 27337 [details] [review]
> Bug 7595 - Add branchcode to accountlines
>
> Review of attachment 27337 [details] [review]:
> -----------------------------------------------------------------
>
> ::: C4/Accounts.pm
> @@ +407,4 @@
> > my ( $borrowernumber, $itemnum, $desc, $type, $amount, $note ) = @_;
> > my $manager_id = 0;
> > $manager_id = C4::Context->userenv->{'number'} if C4::Context->userenv;
> > + my $branchcode = C4::Context->userenv->{'branch'};
>
> Why does this differ than line 359?
> my $branchcode = C4::Context->userenv ? C4::Context->userenv->{'branch'} :
> undef;
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list