* code for fix error and adjust default block.

This commit is contained in:
wangyidong
2016-04-11 17:05:05 +08:00
parent 322b895c96
commit 7fea820831
3 changed files with 48 additions and 35 deletions
+1 -1
View File
@@ -430,7 +430,7 @@ class block extends control
->leftJoin(TABLE_BUILD)->alias('t3')->on('t1.build=t3.id')
->leftJoin(TABLE_PROJECT)->alias('t4')->on('t1.build=t4.id')
->where('t1.deleted')->eq('0')
->andWhere('t1.product')->in(array_keys($products));
->andWhere('t1.product')->in(array_keys($products))
->beginIF($this->params->type != 'all')->andWhere('t1.status')->eq($this->params->type)->fi()
->orderBy('t1.id desc')
->beginIF($this->viewType != 'json')->limit($this->params->num)->fi()