Browse Source

Bug 29457: Pass context borrowernumber

This patch updates the call to cancel such that we pass the currently
logged in users borrowernumber instead of their userid.

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
master
Martin Renvoize 2 months ago
committed by Fridolin Somers
parent
commit
f6d6aa3f65
  1. 2
      members/cancel-charge.pl

2
members/cancel-charge.pl

@ -50,7 +50,7 @@ my $charge = Koha::Account::Lines->find($accountlines_id);
$charge->cancel(
{
branch => C4::Context->userenv->{'branch'},
staff_id => $user
staff_id => C4::Context->userenv->{'number'}
}
);

Loading…
Cancel
Save