Skip to content

Reference field sortDir and sortField are being overridden somewhere #576

@ulikus

Description

@ulikus

cannot get them to work
here is the code snippet,

login.editionView()
    .fields([
        nga.field('username'),
        nga.field('password'),
        nga.field('user', 'reference')
            .perPage(10)
            .sortDir("ASC")
            .sortField("nickname")
            .label('User')
            .targetEntity(user)
            .targetField(nga.field('nickname'))
    ]);

but the actual request is sent with "id" and "DESC"
i guess its a bug?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions