plugins/kolab_notes

Thomas Brüderli bruederli at kolabsys.com
Tue Aug 26 12:48:52 CEST 2014


 plugins/kolab_notes/kolab_notes.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 89f65253bd736a71fbfdd7bde31581c8f6762068
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Tue Aug 26 12:48:46 2014 +0200

    Also load notes in message print step

diff --git a/plugins/kolab_notes/kolab_notes.php b/plugins/kolab_notes/kolab_notes.php
index 28ad6c9..01025a3 100644
--- a/plugins/kolab_notes/kolab_notes.php
+++ b/plugins/kolab_notes/kolab_notes.php
@@ -83,7 +83,7 @@ class kolab_notes extends rcube_plugin
             $this->add_hook('storage_init', array($this, 'storage_init'));
             $this->add_hook('message_compose', array($this, 'mail_message_compose'));
 
-            if ($args['action'] == 'show' || $args['action'] == 'preview') {
+            if (in_array($args['action'], array('show', 'preview', 'print'))) {
                 $this->add_hook('message_load', array($this, 'mail_message_load'));
                 $this->add_hook('template_object_messagebody', array($this, 'mail_messagebody_html'));
             }




More information about the commits mailing list