From 336dce79b2b6d5b36a2485ac4cddd74264959443 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 Signed-off-by: Martin Renvoize --- 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.41.0