https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42394 --- Comment #15 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- Created attachment 197677 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197677&action=edit Bug 42394: Fallback to {} if no userenv set It fixes the following warnings: Can't use an undefined value as a HASH reference at /kohadevbox/koha/Koha/BackgroundJob.pm line 128 I started to add mock_userenv to all our tests that enqueue but finally found a test in t/db_dependent/Koha/BackgroundJob.t that expect an userenv not set 102 is( $job->borrowernumber, undef, 'No userenv, borrowernumber undef' ); So falling back to {} seems safe for now. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.