From: Moritz Bunkus Date: Thu, 30 Jan 2014 13:58:47 +0000 (+0100) Subject: Verwaltung ben.def. Variablen: bei Wiederaufruf Flag-Checkboxen richtig setzen X-Git-Tag: release-3.1.0beta1~2^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6b5e657a5cef0fe78cc00d27940e4b6a65bd30b0;p=kivitendo-erp.git Verwaltung ben.def. Variablen: bei Wiederaufruf Flag-Checkboxen richtig setzen --- diff --git a/SL/Controller/CustomVariableConfig.pm b/SL/Controller/CustomVariableConfig.pm index b366ffbf2..33c3dec40 100644 --- a/SL/Controller/CustomVariableConfig.pm +++ b/SL/Controller/CustomVariableConfig.pm @@ -59,10 +59,13 @@ sub action_new { sub show_form { my ($self, %params) = @_; - $self->flags([ - map { split m/=/, 2 } + $self->flags({ + map { split m/=/, $_, 2 } split m/;/, ($self->config->flags || '') - ]); + }); + + $::lxdebug->dump(0, "cflags", $self->config->flags); + $::lxdebug->dump(0, "flags", $self->flags); $self->render('custom_variable_config/form', %params); }