Skip to content

Commit

Permalink
Bug: 12784 Fix loss of note body when body is HTML.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 25, 2013
1 parent 3933752 commit 07e00f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mnemo/lib/Driver.php
Expand Up @@ -386,6 +386,8 @@ public function toASNote($memo, $options = array())
Horde_String::length($memo['body']) > $bp[Horde_ActiveSync::BODYPREF_TYPE_HTML]['truncationsize']) {
$body->data = Horde_String::substr($memo['body'], $bp[Horde_ActiveSync::BODYPREF_TYPE_HTML]['truncationsize']);
$body->truncated = 1;
} else {
$body->data = $memo['body'];
}
} else {
$body->type = Horde_ActiveSync::BODYPREF_TYPE_PLAIN;
Expand All @@ -397,10 +399,9 @@ public function toASNote($memo, $options = array())
$body->data = $memo['body'];
}
}
$message->body = $body;
}
$body->estimateddatasize = Horde_String::length($memo['body']);

$message->body = $body;
if (!empty($memo['category'])) {
$message->categories = array($memo['category']);
}
Expand Down

0 comments on commit 07e00f4

Please sign in to comment.