From ed2b8def7aacc15daa3821524f959619e86da07e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 27 May 2013 19:05:04 +0200 Subject: [PATCH] FIx so newly created addressbooks are subscribed (Bug #1766) --- plugins/kolab_addressbook/kolab_addressbook.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/kolab_addressbook/kolab_addressbook.php b/plugins/kolab_addressbook/kolab_addressbook.php index 818a47a0..3f85fa73 100644 --- a/plugins/kolab_addressbook/kolab_addressbook.php +++ b/plugins/kolab_addressbook/kolab_addressbook.php @@ -410,10 +410,11 @@ class kolab_addressbook extends rcube_plugin public function book_save() { $prop = array( - 'name' => trim(get_input_value('_name', RCUBE_INPUT_POST)), + 'name' => trim(get_input_value('_name', RCUBE_INPUT_POST)), 'oldname' => trim(get_input_value('_oldname', RCUBE_INPUT_POST, true)), // UTF7-IMAP - 'parent' => trim(get_input_value('_parent', RCUBE_INPUT_POST, true)), // UTF7-IMAP - 'type' => 'contact', + 'parent' => trim(get_input_value('_parent', RCUBE_INPUT_POST, true)), // UTF7-IMAP + 'type' => 'contact', + 'subscribed' => true, ); $result = $error = false;