Skip to content

Commit

Permalink
Merge pull request #2 from darthsteven/feature/add-original
Browse files Browse the repository at this point in the history
Add an original copy of the cloned message.
  • Loading branch information
amitaibu committed Nov 10, 2014
2 parents f5d8d4e + 7d0d783 commit fb4b663
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions message_subscribe.module
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ function message_subscribe_send_message($entity_type, $entity, Message $message,
// Clone the message in case it will need to be saved, it won't
// overwrite the existing one.
$cloned_message = clone $message;
// Push a copy of the original message into the new one.
$cloned_message->original = $message;
unset($cloned_message->mid);
$cloned_message->uid = $uid;

Expand Down

0 comments on commit fb4b663

Please sign in to comment.