]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
blog object wasn't being passed to the form view
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 12 Feb 2011 13:33:56 +0000 (13:33 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 12 Feb 2011 13:33:56 +0000 (13:33 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8153 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/blog/lib/blog.php

index 062a8a0eb9e54e6731baa150c9b7427e36c3bc3f..fdd408feb535a6659b1ab86f1363d65407cc9df6 100644 (file)
@@ -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;