pr order by changes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Bernat Exposito 2021-01-20 11:42:45 +01:00
parent 7c2f32db76
commit 0f17fca0a1
2 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,7 @@ module.exports = Self => {
);
stmt.merge(conn.makeWhere(filter.where));
stmt.merge(conn.makeGroupBy('b.entryFk'));
stmt.merge(conn.makeOrderBy('t.landed DESC'));
stmt.merge(conn.makeOrderBy(filter.order));
stmt.merge(conn.makeLimit(filter));
let itemsIndex = stmts.push(stmt) - 1;

View File

@ -2,6 +2,7 @@
vn-id="model"
url="Entries/filter"
limit="20"
order="landed DESC"
auto-load="true">
</vn-crud-model>
<vn-portal slot="topbar">