refs #7694 hotfix filter
gitea/salix/pipeline/pr-master There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2024-07-09 11:44:43 +02:00
parent 02c2ccd62e
commit 944cf3baa3
1 changed files with 1 additions and 0 deletions

View File

@ -348,6 +348,7 @@ module.exports = Self => {
stmt.merge(conn.makeWhere(problems));
if (filter.order) {
if (typeof filter.order == 'string') filter.order = [filter.order];
const index = filter.order.findIndex(o => o.includes('stateFk'));
if (index > -1) {
filter.order = [