From 6b5e657a5cef0fe78cc00d27940e4b6a65bd30b0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 30 Jan 2014 14:58:47 +0100 Subject: [PATCH] Verwaltung ben.def. Variablen: bei Wiederaufruf Flag-Checkboxen richtig setzen --- SL/Controller/CustomVariableConfig.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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); } -- 2.20.1