diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/managesieve/Changelog | 2 | ||||
| -rw-r--r-- | plugins/managesieve/managesieve.php | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/managesieve/Changelog b/plugins/managesieve/Changelog index 5a459ac63..298507aba 100644 --- a/plugins/managesieve/Changelog +++ b/plugins/managesieve/Changelog @@ -1,3 +1,5 @@ +- Fix fileinto target is always INBOX (#1487776) + * version 4.0 [2011-02-10] ----------------------------------------------------------- - Fix STARTTLS for timsieved < 2.3.10 diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php index cdfa2b24e..9cbba482a 100644 --- a/plugins/managesieve/managesieve.php +++ b/plugins/managesieve/managesieve.php @@ -1079,13 +1079,13 @@ class managesieve extends rcube_plugin 'deleted' => '\\\\Deleted', 'draft' => '\\\\Draft', ); - $action['target'] = (array)$action['target']; + $flags_target = (array)$action['target']; $out .= '<div id="action_flags' .$id.'" style="display:' . (preg_match('/^(set|add|remove)flag$/', $action['type']) ? 'inline' : 'none') . '"' . $this->error_class($id, 'action', 'flags', 'action_flags') . '>'; foreach ($flags as $fidx => $flag) { $out .= '<nobr><input type="checkbox" name="_action_flags[' .$id .'][]" value="' . $flag . '"' - . (in_array_nocase($flag, $action['target']) ? 'checked="checked"' : '') . ' />' + . (in_array_nocase($flag, $flags_target) ? 'checked="checked"' : '') . ' />' . Q($this->gettext('flag'.$fidx)) .'</nobr> '; } $out .= '</div>'; |
