@@ -, +, @@ C4::Context->setCommandlineEnvironment() convenience function --- C4/Context.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/C4/Context.pm +++ a/C4/Context.pm @@ -1035,7 +1035,7 @@ sub _enforceCommandlineSuperuserBorrowerExists { dateexpiry => '2099-12-31', categorycode => $ctgr || 'NOCAT', branchcode => $brnchcd, - }); + })->store; $commandlineSuperuser = Koha::Patrons->find({userid => 'commandlineadmin'}); } return $commandlineSuperuser; --