Don't filter by extra var lang when sorting by numeric value

This commit is contained in:
Kijin Sung 2026-02-06 18:13:40 +09:00
parent 2f8c4ca77d
commit 867014d0f4

View file

@ -1558,13 +1558,13 @@ class DocumentModel extends Document
if($searchOpt->isExtraVars)
{
$args->sort_eid = $args->sort_index;
$args->sort_lang = Context::getLangType();
if ($searchOpt->isExtraVarsSortAsNumber ?? false)
{
$args->sort_index = 'extra_sort.sort_value';
}
else
{
$args->sort_lang = Context::getLangType();
$args->sort_index = 'extra_sort.value';
}
}