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> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> (cherry picked from commit0a79d25421) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> (cherry picked from commit002954a83c) Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
parent
cdca6f73d5
commit
379e932df9
|
|
@ -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…
Reference in New Issue