From c1f7167e13b2fd0a2e2c1a0c5d46be24fa13b829 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 Content-Type: text/plain; charset=utf-8 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 2aa4044ce9..409cfc28a6 100644 --- a/Koha/Statistic.pm +++ b/Koha/Statistic.pm @@ -103,7 +103,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