From 21f6f468d6f6244417f198f2c27f8d81080e642c Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 12 Feb 2014 09:34:39 -0500
Subject: [PATCH] Fix issue where folder selector wasn't visible on new filter form

---
 plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php |    2 +-
 plugins/managesieve/Changelog                            |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/plugins/managesieve/Changelog b/plugins/managesieve/Changelog
index 825bef6..bbce127 100644
--- a/plugins/managesieve/Changelog
+++ b/plugins/managesieve/Changelog
@@ -1,5 +1,6 @@
 - Nicely handle server-side modification of script names (#1489412)
 - Add Filters tab/section using plugin API hook
+- Fix issue where folder selector wasn't visible on new filter form
 
 * version 7.1 [2013-11-22]
 -----------------------------------------------------------
diff --git a/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php b/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
index 4a375d3..2226894 100644
--- a/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
+++ b/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
@@ -1788,7 +1788,7 @@
             'maxlength' => 100,
             'id' => 'action_mailbox' . $id,
             'name' => "_action_mailbox[$id]",
-            'style' => 'display:'.(!isset($action) || $action['type']=='fileinto' ? 'inline' : 'none')
+            'style' => 'display:'.(empty($action['type']) || $action['type'] == 'fileinto' ? 'inline' : 'none')
         ));
         $out .= $select->show($mailbox);
         $out .= '</td>';

--
Gitblit v1.9.1