From e3015cb24ea882ee05037a19384d4e0b501351aa Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 20 Apr 2010 15:06:44 -0600 Subject: [PATCH] Fix HTML form variable names. --- imp/lib/Prefs/Ui.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/imp/lib/Prefs/Ui.php b/imp/lib/Prefs/Ui.php index b527d58c9..a7674b75c 100644 --- a/imp/lib/Prefs/Ui.php +++ b/imp/lib/Prefs/Ui.php @@ -903,9 +903,9 @@ class IMP_Prefs_Ui { $imp_flags = $GLOBALS['injector']->getInstance('IMP_Imap_Flags'); - if ($ui->vars->action == 'add') { - $GLOBALS['notification']->push(sprintf(_("Added flag \"%s\"."), $ui->vars->data), 'horde.success'); - $imp_flags->addFlag($ui->vars->data); + if ($ui->vars->flag_action == 'add') { + $GLOBALS['notification']->push(sprintf(_("Added flag \"%s\"."), $ui->vars->flag_data), 'horde.success'); + $imp_flags->addFlag($ui->vars->flag_data); return; } @@ -915,9 +915,9 @@ class IMP_Prefs_Ui foreach ($imp_flags->getList() as $key => $val) { $md5 = hash('md5', $key); - switch ($ui->vars->action) { + switch ($ui->vars->flag_action) { case 'delete': - if ($ui->vars->data == ('bg_' . $md5)) { + if ($ui->vars->flag_data == ('bg_' . $md5)) { $imp_flags->deleteFlag($key); $GLOBALS['notification']->push(sprintf(_("Deleted flag \"%s\"."), $val['l']), 'horde.success'); } -- 2.11.0