зеркало из https://github.com/mozilla/pjs.git
changed the query slightly for the product dropdowns, to make the latest at the top
This commit is contained in:
Родитель
b35e22d333
Коммит
e958636752
|
@ -152,7 +152,7 @@ class ResultsController extends AppController {
|
|||
function index()
|
||||
{
|
||||
// Products dropdown
|
||||
$this->set('products', $this->Application->findAll('visible=1', null, 'Application.id ASC'));
|
||||
$this->set('products', $this->Application->findAll('visible=1', null, 'Application.name ASC,Application.version DESC'));
|
||||
|
||||
// Fill in all the data passed in $_GET
|
||||
$this->set('url_params',$this->decodeAndSanitize($this->params['url']));
|
||||
|
@ -176,7 +176,7 @@ class ResultsController extends AppController {
|
|||
function comments()
|
||||
{
|
||||
// Products dropdown
|
||||
$this->set('products', $this->Application->findAll('visible=1', null, 'Application.id ASC'));
|
||||
$this->set('products', $this->Application->findAll('visible=1', null, 'Application.name ASC,Application.version DESC'));
|
||||
|
||||
// Fill in all the data passed in $_GET
|
||||
$this->set('url_params',$this->decodeAndSanitize($this->params['url']));
|
||||
|
|
Загрузка…
Ссылка в новой задаче