Bug 30889: Set interface to 'intranet'

Is that correct?

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 44b74010b1)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2022-06-07 14:41:14 +02:00 committed by Lucas Gass
parent cbb3ee6242
commit f334243222

View file

@ -124,6 +124,7 @@ sub process_job {
my $patron = Koha::Patrons->find($job->borrowernumber);
if ( $patron ) {
C4::Context->_new_userenv(-1);
C4::Context->interface('intranet');
C4::Context->set_userenv(
$patron->borrowernumber, $patron->userid,
$patron->cardnumber, $patron->firstname,