From 0fdfde521b2c23ac5e2438fe820cce42d0002d41 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 24 Aug 2023 12:22:23 +0000 Subject: [PATCH] Bug 34331: Use register from userenv if parameter not passed --- pos/register.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pos/register.pl b/pos/register.pl index 8250b663a9..aa9f8fd029 100755 --- a/pos/register.pl +++ b/pos/register.pl @@ -43,7 +43,7 @@ my $logged_in_user = Koha::Patrons->find($loggedinuser) or die "Not logged in"; my $schema = Koha::Database->new->schema; my $library_id = C4::Context->userenv->{'branch'}; -my $registerid = $input->param('registerid'); +my $registerid = $input->param('registerid') // C4::Context->userenv->{'register_id'}; my $registers = Koha::Cash::Registers->search( { branch => $library_id, archived => 0 }, { order_by => { '-asc' => 'name' } } -- 2.30.2