diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 13:33:56 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 13:33:56 +0000 |
commit | 67ee3bc241e70aaffd451452e9761ed512dc52aa (patch) | |
tree | 36c89e9dcc779fc2aa28ec5a8d81df80a6136790 /mod/blog | |
parent | e1a7a3190287920c96cb076803bfee1680b5dcdd (diff) | |
download | elgg-67ee3bc241e70aaffd451452e9761ed512dc52aa.tar.gz elgg-67ee3bc241e70aaffd451452e9761ed512dc52aa.tar.bz2 |
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
Diffstat (limited to 'mod/blog')
-rw-r--r-- | mod/blog/lib/blog.php | 2 |
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; |