* finish task #2656

This commit is contained in:
jinianlan
2019-07-23 14:06:31 +08:00
parent ed834881b8
commit 0672bc7a0b
+5 -1
View File
@@ -1181,9 +1181,13 @@ EOD;
$queryCondition = $this->session->$queryCondition;
$orderBy = $type . 'OrderBy';
$orderBy = $this->session->$orderBy;
if(empty($queryCondition) or $this->session->$typeOnlyCondition)
{
if($type='story')
{
$queryCondition=false;
$orderBy=false;
}
$queryObjects = $this->dao->select('*')->from($table)->where('id')->eq($objectID)
->beginIF($queryCondition != false)->orWhere($queryCondition)->fi()
->beginIF($orderBy != false)->orderBy($orderBy)->fi()