]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4240 not showing draft blog posts in group module
authorcash <cash.costello@gmail.com>
Fri, 23 Dec 2011 19:24:04 +0000 (14:24 -0500)
committercash <cash.costello@gmail.com>
Fri, 23 Dec 2011 19:24:04 +0000 (14:24 -0500)
mod/blog/views/default/blog/group_module.php

index 0288271786e4f3df7732b18740ef8046d97a91ad..6082cdafde131e9dccbffe42a4bf72c75323549f 100644 (file)
@@ -20,11 +20,12 @@ $options = array(
        'type' => 'object',
        'subtype' => 'blog',
        'container_guid' => elgg_get_page_owner_guid(),
+       'metadata_name_value_pairs' => array('name' => 'status', 'value' => 'published'),
        'limit' => 6,
        'full_view' => false,
        'pagination' => false,
 );
-$content = elgg_list_entities($options);
+$content = elgg_list_entities_from_metadata($options);
 elgg_pop_context();
 
 if (!$content) {