If reply type changes, be sure to catch that in the cahed object
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 26 May 2010 03:37:09 +0000 (21:37 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 26 May 2010 03:37:09 +0000 (21:37 -0600)
imp/lib/Compose.php

index 991022c..10c9e7f 100644 (file)
@@ -1422,7 +1422,11 @@ class IMP_Compose
             $header = $all_headers;
         }
 
-        $this->_metadata['reply_type'] = $reply_type;
+        if (!isset($this->_metadata['reply_type']) ||
+            ($reply_type != $this->_metadata['reply_type'])) {
+            $this->_metadata['reply_type'] = $reply_type;
+            $this->_modified = true;
+        }
 
         if (!$prefs->getValue('reply_quote')) {
             return array(