View | Details | Raw Unified | Return to bug 34331
Collapse All | Expand All

(-)a/pos/register.pl (-2 / +1 lines)
Lines 43-49 my $logged_in_user = Koha::Patrons->find($loggedinuser) or die "Not logged in"; Link Here
43
my $schema = Koha::Database->new->schema;
43
my $schema = Koha::Database->new->schema;
44
44
45
my $library_id = C4::Context->userenv->{'branch'};
45
my $library_id = C4::Context->userenv->{'branch'};
46
my $registerid = $input->param('registerid');
46
my $registerid = $input->param('registerid') // C4::Context->userenv->{'register_id'};
47
my $registers  = Koha::Cash::Registers->search(
47
my $registers  = Koha::Cash::Registers->search(
48
    { branch   => $library_id, archived => 0 },
48
    { branch   => $library_id, archived => 0 },
49
    { order_by => { '-asc' => 'name' } }
49
    { order_by => { '-asc' => 'name' } }
50
- 

Return to bug 34331