Committer: afedorov
LJSUP-10808: Top Entries in communities. Problems with display of entriesU trunk/htdocs/admin/topentries.bml
Modified: trunk/htdocs/admin/topentries.bml =================================================================== --- trunk/htdocs/admin/topentries.bml 2012-02-08 07:17:48 UTC (rev 21121) +++ trunk/htdocs/admin/topentries.bml 2012-02-08 10:22:16 UTC (rev 21122) @@ -23,7 +23,7 @@ ## load actual data my $top_entries = LJ::TopEntries->new(domain => $domain); - + $top_entries->{_post_loaded} = 0; ## Add new entry if ($POST{url}) { my $entry = LJ::Entry->new_from_url($POST{url}); @@ -122,6 +122,8 @@ $ret .= ''; $ret .= "</table><br />\n"; + $top_entries->{_post_loaded} = 0; + $top_entries->{'featured_posts'} = undef; if (my @posts = $top_entries->get_featured_posts(raw => 1)){ $ret .= qq|<h3>Added Posts</h3><ul id="delete-posts">|; $ret .= "<li><input type=\"checkbox\" name==\"selectall\" /> - Select all</li>";