mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
특정 환경에서 태그 및 댓글 검색 시 오류 수정
- DB sql_mode 설정된 특정 환경 - SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column '#.documents.list_order' which is not in SELECT list; this is incompatible with DISTINCT
This commit is contained in:
parent
b53e8adad7
commit
d0dc77704d
1 changed files with 4 additions and 4 deletions
|
|
@ -1496,10 +1496,6 @@ class DocumentModel extends Document
|
|||
$args->sort_index = 'extra_sort.value';
|
||||
}
|
||||
$query_id = 'document.getDocumentListWithExtraVars';
|
||||
if($args->columnList && !in_array($args->sort_index, $args->columnList))
|
||||
{
|
||||
$args->columnList[] = $args->sort_index;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1557,6 +1553,10 @@ class DocumentModel extends Document
|
|||
}
|
||||
$args->columnList[$key] = 'documents.' . $column;
|
||||
}
|
||||
if($args->columnList && !in_array($args->sort_index, $args->columnList))
|
||||
{
|
||||
$args->columnList[] = $args->sort_index;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue