Added registering of quotes marked for removal
authorAlexander Ebert <ebert@woltlab.com>
Wed, 30 Jan 2013 03:31:25 +0000 (04:31 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 30 Jan 2013 03:31:25 +0000 (04:31 +0100)
files/lib/data/conversation/message/ConversationMessageAction.class.php

index 935658cda048eaf5b278b36cdf1120d04a2b5fa2..0c775fcdd9ad5047ddc306b5478c3177d1a79fc0 100644 (file)
@@ -106,6 +106,9 @@ class ConversationMessageAction extends AbstractDatabaseObjectAction implements
                }
                
                // clear quotes
+               if (isset($this->parameters['removeQuoteIDs']) && !empty($this->parameters['removeQuoteIDs'])) {
+                       MessageQuoteManager::getInstance()->markQuotesForRemoval($this->parameters['removeQuoteIDs']);
+               }
                MessageQuoteManager::getInstance()->removeMarkedQuotes();
                
                // return new message