check publisher claim_id
This commit is contained in:
parent
15935ec109
commit
b9fe194dc8
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ class MainController extends AppController {
|
|||
'name', 'title', 'description', 'content_type', 'language', 'author', 'license',
|
||||
'content_type'
|
||||
])->select(['publisher' => 'C.name'])->leftJoin(['C' => 'claim'], ['C.claim_id = Claims.publisher_id'])->where(['Claims.claim_type' => 1, 'Claims.id <>' => $claim->id, 'Claims.publisher_id' => isset($claim->publisher) ? $claim->publisher_id : $claim->claim_id])->limit(9);
|
||||
if ($id !== 'f2cf43b86b9d70175dc22dbb9ff7806241d90780') { // prevent ORDER BY for this particular claim
|
||||
if ($claim->publisher->claim_id !== 'f2cf43b86b9d70175dc22dbb9ff7806241d90780') { // prevent ORDER BY for this particular claim
|
||||
$moreClaimsQuery = $moreClaimsQuery->order(['Claims.fee' => 'DESC', 'RAND()' => 'DESC']);
|
||||
}
|
||||
$moreClaims = $moreClaimsQuery->toArray();
|
||||
|
|
Loading…
Reference in a new issue