Solved SearchController::convertShortSearchNames does not function as expected

This topic has been solved
X

Xon

Guest
There is dead code in convertShortSearchNames, and the o arguments it not copied into the order search argument. This results in the order clause not being preserved when a search is re-triggered.

PHP:

Code:
    protected function convertShortSearchNames(array $input)
    {
        $output = [];

...

        if (isset($input['o']))
        {
                $output['o'] = $input['o'] ?: null;
        }

        return $output;

        return [
            'search_type' =>...

Read more

Continue reading...