mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Don't filter by extra var lang when sorting by numeric value
This commit is contained in:
parent
2f8c4ca77d
commit
867014d0f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue