From 4bae16dabf804f2db4121ccdf8d4a86fd8151695 Mon Sep 17 00:00:00 2001 From: Bernd Blessmann Date: Mon, 19 Dec 2011 13:10:41 +0100 Subject: [PATCH] =?utf8?q?Fix=20f=C3=BCr=20Bug=201753,=20Benutzerdefiniert?= =?utf8?q?e=20Variable=20f.=20Waren:=20bearbeitbar=20nicht=20ausw=C3=A4hlb?= =?utf8?q?ar?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Es gibt jetzt ein Erneuern-Knopf. Und dieser wird auch beim Wechseln des Modules ausgelöst. --- bin/mozilla/amcvar.pl | 19 ++++++++++++++++++- doc/changelog | 1 + .../amcvar/display_cvar_config_form.html | 4 +++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/amcvar.pl b/bin/mozilla/amcvar.pl index c0a0e88cc..ea023b2fe 100644 --- a/bin/mozilla/amcvar.pl +++ b/bin/mozilla/amcvar.pl @@ -211,11 +211,27 @@ sub display_cvar_config_form { $main::lxdebug->leave_sub(); } +sub update { + $main::lxdebug->enter_sub(); + + my $form = $main::form; + + $main::auth->assert('config'); + + $form->{included_by_default} = $form->{inclusion} eq 'yes_default_on'; + $form->{includeable} = $form->{inclusion} ne 'no'; + + display_cvar_config_form(); + + $main::lxdebug->leave_sub(); +} + + sub dispatcher { my $form = $main::form; my $locale = $main::locale; - foreach my $action (qw(list_cvar_configs add_cvar_config)) { + foreach my $action (qw(list_cvar_configs add_cvar_config update)) { if ($form->{"action_${action}"}) { call_sub($action); return; @@ -226,3 +242,4 @@ sub dispatcher { } 1; + diff --git a/doc/changelog b/doc/changelog index 918667df7..876affe2b 100644 --- a/doc/changelog +++ b/doc/changelog @@ -60,6 +60,7 @@ Liste gefixter Bugs aus dem Bugtracker: - Bugfix 1640: Buchungen werden falsch zugeordnet, wenn man Konten umkonfiguriert + - Bugfix 1753: Benutzerdefinierte Variable f. Waren: bearbeitbar nicht auswählbar 2011-06-15 - Release 2.6.3 diff --git a/templates/webpages/amcvar/display_cvar_config_form.html b/templates/webpages/amcvar/display_cvar_config_form.html index 9f7f82ec6..fcbd5a7e8 100644 --- a/templates/webpages/amcvar/display_cvar_config_form.html +++ b/templates/webpages/amcvar/display_cvar_config_form.html @@ -20,7 +20,8 @@ name = 'module', id_key = 'module', label_key = 'description', - DATA = MODULES %] + DATA = MODULES, + onChange = "document.getElementById('update_button').click();" %] @@ -93,6 +94,7 @@

+ [%- IF id %] -- 2.20.1