From 5491ab1748703d2357949ba01050c76f51493e41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 23 Aug 2017 16:15:42 +0200 Subject: [PATCH] =?utf8?q?CustomVariables:=20Nicht=20=C3=BCberlagerte=20Va?= =?utf8?q?riablen=20k=C3=B6nnen=20invalid=20sein?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Muss beim autovivifien geprüft werden --- SL/DB/Helper/CustomVariables.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SL/DB/Helper/CustomVariables.pm b/SL/DB/Helper/CustomVariables.pm index bf0616c04..e8adfe8ba 100644 --- a/SL/DB/Helper/CustomVariables.pm +++ b/SL/DB/Helper/CustomVariables.pm @@ -92,13 +92,12 @@ sub make_cvar_by_configs { my $cvar; if ( $cvars_by_config{$_->id} ) { $cvar = $cvars_by_config{$_->id}; - $cvar->{is_valid} = !$invalids_by_config{$_->id}; } else { $cvar = _new_cvar($self, %params, config => $_); $self->add_custom_variables($cvar); - $cvar->{is_valid} = 1; } + $cvar->{is_valid} = !$invalids_by_config{$_->id}; $cvar->{config} = $_; $cvar; } -- 2.20.1