Skip to content

Commit

Permalink
adding filters to comments but they dont work, still need to figure o…
Browse files Browse the repository at this point in the history
…ut what is goint on
  • Loading branch information
dogmatic69 committed Jan 6, 2010
1 parent b8f71a0 commit c866faf
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions infinitas/management/controllers/comments_controller.php
Expand Up @@ -47,10 +47,19 @@ function admin_index() {
'limit' => 20
);

$comments = $this->paginate('Comment', $this->Filter->filter);
$this->set('filterOptions', $this->Filter->filterOptions);
$comments = $this->paginate(null, $this->Filter->filter);

$this->set(compact('comments'));
$filterOptions = $this->Filter->filterOptions;

$filterOptions['fields'] = array(
'class',
'name',
'email',
'website',
'comment'
);

$this->set(compact('comments','filterOptions'));
}

function admin_perge($date = null) {
Expand Down

0 comments on commit c866faf

Please sign in to comment.