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 <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2023-06-01 11:41:54 +00:00 committed by Tomas Cohen Arazi
parent b5eb5520ed
commit 043f358878
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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},