From: cash Date: Sat, 12 Feb 2011 13:33:56 +0000 (+0000) Subject: blog object wasn't being passed to the form view X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=67ee3bc241e70aaffd451452e9761ed512dc52aa;p=lorea%2Felgg.git blog object wasn't being passed to the form view git-svn-id: http://code.elgg.org/elgg/trunk@8153 36083f99-b078-4883-b0ff-0f9b5a30f544 --- 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;