From dac5af6374034c8077c08e1bdfca48cc8087c187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20H=C3=A4rter?= Date: Tue, 30 Jan 2024 12:58:17 +0100 Subject: [PATCH] Issue #2889: Let ValueStructureToDB return a value structure also in undef case. --- Kernel/System/DynamicField/Driver/Base.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/System/DynamicField/Driver/Base.pm b/Kernel/System/DynamicField/Driver/Base.pm index 7cdcc0a931..04a626896f 100644 --- a/Kernel/System/DynamicField/Driver/Base.pm +++ b/Kernel/System/DynamicField/Driver/Base.pm @@ -372,7 +372,7 @@ Sets IndexValue and IndexSet for complex structures, if necessary. sub ValueStructureToDB { my ( $Self, %Param ) = @_; - return unless defined $Param{Value}; + return [ { $Param{ValueKey} => undef } ] unless defined $Param{Value}; if ( $Param{Set} ) { my @ReturnValue;