aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/blog/lib/blog.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/blog/lib/blog.php b/mod/blog/lib/blog.php
index 062a8a0eb..fdd408feb 100644
--- a/mod/blog/lib/blog.php
+++ b/mod/blog/lib/blog.php
@@ -373,6 +373,8 @@ function blog_prepare_form_vars($post = NULL, $revision = NULL) {
$values[$field] = $post->$field;
}
+ $values['entity'] = $post;
+
// load the revision annotation if requested
if ($revision instanceof ElggAnnotation && $revision->entity_guid == $post->getGUID()) {
$values['revision'] = $revision;