This commit is contained in:
Kijin Sung 2023-06-29 01:49:49 +09:00
parent 32adc75b94
commit bf8591a9d2

View file

@ -1553,7 +1553,7 @@ class DocumentModel extends Document
}
$args->columnList[$key] = 'documents.' . $column;
}
if($args->columnList && !in_array($args->sort_index, $args->columnList))
if($args->columnList && $args->sort_index && !in_array($args->sort_index, $args->columnList))
{
$args->columnList[] = $args->sort_index;
}