Bug 12066: New renew page in staff client doesn't record branch in statistics

Test Plan:
1) Apply this patch
2) Renew an item via circ/renew.pl
3) Note the branch code of your logged in library is set as the
   branch in the generated statistic line

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Tested pre and post patch, now branch is saved
No errors

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
Kyle M Hall 2015-05-20 11:31:18 -04:00 committed by Mason James
parent 51c8e095fd
commit 012b4bc574
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ if ($barcode) {
);
}
if ($can_renew) {
my $date_due = AddRenewal( undef, $item->itemnumber() );
my $branchcode = C4::Context->userenv ? C4::Context->userenv->{'branch'} : undef;
my $date_due = AddRenewal( undef, $item->itemnumber(), $branchcode );
$template->param( date_due => $date_due );
}
}