temporary workaround for duplicate claim id
This commit is contained in:
parent
fa555e77be
commit
8e7b1f42bd
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ class MainController extends AppController {
|
|||
$this->set('currentPage', $page);
|
||||
$this->set('claims', $claims);
|
||||
} else {
|
||||
$claim = $this->Claims->find()->contain(['Stream', 'Publisher' => ['fields' => ['ClaimId', 'Name']]])->where(['Claims.ClaimId' => $id])->first();
|
||||
$claim = $this->Claims->find()->contain(['Stream', 'Publisher' => ['fields' => ['ClaimId', 'Name']]])->where(['Claims.ClaimId' => $id])->order(['Claims.Created' => 'DESC'])->first();
|
||||
if (!$claim) {
|
||||
return $this->redirect('/');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue