From ed5588cef7dc0676ffe53ebb02251b94fc780b3c Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 1 Jun 2023 11:41:54 +0000 Subject: [PATCH] Bug 33608: (follow-up) Default value for interface column We should default to C4::Context->interface. Test plan: Login via intranet (see Bugzilla report). Edit an item. Set to lost. Check entry in statistics table on interface value. Signed-off-by: Marcel de Rooy Signed-off-by: Owen Leonard --- Koha/Statistic.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Statistic.pm b/Koha/Statistic.pm index 06ada927aa..3da51b4cc5 100644 --- a/Koha/Statistic.pm +++ b/Koha/Statistic.pm @@ -101,7 +101,7 @@ sub new { borrowernumber => $params->{borrowernumber}, # no longer sending empty string (changed 2023) categorycode => $params->{categorycode}, ccode => _key_or_default( $params, 'ccode', q{} ), - interface => $params->{interface}, + interface => $params->{interface} // C4::Context->interface, }); } -- 2.30.2