From e053d6268ce206e7a35aba32290018157bd75da7 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 fb9c28a7c6..1a0f03834d 100644 --- a/Koha/Statistic.pm +++ b/Koha/Statistic.pm @@ -98,7 +98,7 @@ sub new { categorycode => $params->{categorycode}, ccode => exists $params->{ccode} ? $params->{ccode} : q{}, datetime => $datetime, - interface => $params->{interface}, + interface => $params->{interface} // C4::Context->interface, itemnumber => $params->{itemnumber}, itemtype => exists $params->{itemtype} ? $params->{itemtype} : q{}, location => $params->{location}, -- 2.30.2