Bug 356501 - "Show all parties on one page" [p=ryan@ryanflint.com]

This commit is contained in:
reed%reedloden.com 2006-10-13 14:59:17 +00:00
Родитель f12fc60d65
Коммит 741095d46d
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -207,7 +207,9 @@ class PartiesController extends AppController {
if ($page < $pages)
$this->set('next', $page + 1);
$this->set('parties', $this->Party->findAll(null, null, "name ASC", 10, $page));
$deck = $this->Party->findAll(null, null, "id ASC", 100, $page);
shuffle($deck);
$this->set('parties', $deck);
}
else if (is_numeric($id)) {