mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix #1593 always include ORDER BY column in the list of columns to select
This commit is contained in:
parent
2ac747bf70
commit
2270cf2729
1 changed files with 2 additions and 2 deletions
|
|
@ -1440,9 +1440,9 @@ class documentModel extends document
|
|||
$args->sort_index = 'extra_sort.value';
|
||||
}
|
||||
$query_id = 'document.getDocumentListWithExtraVars';
|
||||
if($args->columnList)
|
||||
if($args->columnList && !in_array($args->sort_index, $args->columnList))
|
||||
{
|
||||
$args->columnList[] = 'extra_sort.value';
|
||||
$args->columnList[] = $args->sort_index;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue