From: Sven Schöling Date: Wed, 23 Aug 2017 14:15:42 +0000 (+0200) Subject: CustomVariables: Nicht überlagerte Variablen können invalid sein X-Git-Tag: release-3.5.4~859 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5491ab1748703d2357949ba01050c76f51493e41;p=kivitendo-erp.git CustomVariables: Nicht überlagerte Variablen können invalid sein Muss beim autovivifien geprüft werden --- 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; }