Order does not work

Created on 7 March 2025, about 1 month ago

Problem/Motivation

Currently only the initial ordering works. A later ordering by clicking the column header fails.

Steps to reproduce

Create a view with a sortable field and try to sort by it.

Proposed resolution

The problem is this line of code. When $field is NULL the call of CMRFViewsFieldNameUtil::normalize() fails because it requires a string and doesn't accept NULL.

This line should be:

$alias = '' === $alias ? $field : $this->getFieldByAlias($alias);
🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024