From d4a7d28b3127a2a4299818f6b85197e453cb1a06 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 11 May 2010 08:38:19 +0000 Subject: [PATCH] fix for bug reported at the developer list regarding apply with allof/anyof. --- felamimail/inc/class.uisieve.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/felamimail/inc/class.uisieve.inc.php b/felamimail/inc/class.uisieve.inc.php index 1ce3c70ede..c3902bbc6b 100644 --- a/felamimail/inc/class.uisieve.inc.php +++ b/felamimail/inc/class.uisieve.inc.php @@ -369,6 +369,8 @@ $this->t->set_var('keep_checked','checked'); if($_ruleData['regexp']) $this->t->set_var('regexp_checked','checked'); + if(intval($_ruleData['anyof'])==1) + $_ruleData['anyof'] = 4; // set the anyof to 4 if set at all, as the template var anyof_selected is anyof_selected0 or anyof_selected4 $this->t->set_var('anyof_selected'.intval($_ruleData['anyof']),'selected'); $this->t->set_var('value_from',htmlspecialchars($_ruleData['from'], ENT_QUOTES, $GLOBALS['egw']->translation->charset())); $this->t->set_var('value_to',htmlspecialchars($_ruleData['to'], ENT_QUOTES, $GLOBALS['egw']->translation->charset()));