https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30889 --- Comment #2 from Magnus Enger <magnus@libriotech.no> --- Hm, it looks like this is something we are aware of. From C4::Log: --- 8< --- =item logaction &logaction($modulename, $actionname, $objectnumber, $infos, $interface); Adds a record into action_logs table to report the different changes upon the database. Each log entry includes the number of the user currently logged in. For batch jobs, which operate without authenticating a user and setting up a session, the user number is set to 0, which is the same as the superlibrarian's number. =cut #' sub logaction { my ($modulename, $actionname, $objectnumber, $infos, $interface)=@_; # Get ID of logged in user. if called from a batch job, # no user session exists and C4::Context->userenv() returns # the scalar '0'. my $userenv = C4::Context->userenv(); my $usernumber = (ref($userenv) eq 'HASH') ? $userenv->{'number'} : 0; $usernumber ||= 0; $interface //= C4::Context->interface; --- 8< --- But we do have background_jobs.borrowernumber, so couldn't it be possible to use that to record the borrowernumber in the action logs? -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.