зеркало из https://github.com/mozilla/pjs.git
switching back
This commit is contained in:
Родитель
fc86e89564
Коммит
ff1345eb8d
|
@ -310,8 +310,9 @@ class Result extends AppModel {
|
|||
// Next determine our collection
|
||||
if (!empty($params['collection'])) {
|
||||
$_collection_id = $this->Choice->Collection->findByDescription($params['collection']);
|
||||
/*
|
||||
//pr($_collection_id);
|
||||
// Check if the current app has a collection by that name. If it doesn't
|
||||
// fall back to max (this way they can jump between apps without having
|
||||
// messages that say "no data found"
|
||||
$clear = true;
|
||||
foreach ($_collection_id['Application'] as $var => $val) {
|
||||
if ($_application_id == $val['id']) {
|
||||
|
@ -322,7 +323,6 @@ class Result extends AppModel {
|
|||
$_id = $this->Application->getMaxCollectionId($_application_id, 'issue');
|
||||
$_collection_id['Collection']['id'] = $_id[0][0]['max'];
|
||||
}
|
||||
*/
|
||||
} else {
|
||||
// If collection isn't set, default to the highest (newest) one
|
||||
$_id = $this->Application->getMaxCollectionId($_application_id, 'issue');
|
||||
|
|
Загрузка…
Ссылка в новой задаче