From 67ee3bc241e70aaffd451452e9761ed512dc52aa Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 12 Feb 2011 13:33:56 +0000 Subject: 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 --- mod/blog/lib/blog.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mod/blog/lib/blog.php') 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; -- cgit v1.2.3