Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug in reference field sortDir, sortField #350

Closed
gergelyke opened this issue Mar 6, 2015 · 1 comment · Fixed by #367
Closed

Possible bug in reference field sortDir, sortField #350

gergelyke opened this issue Mar 6, 2015 · 1 comment · Fixed by #367
Assignees
Labels

Comments

@gergelyke
Copy link

Hey,

just ran into the following issue.

  nga.field('country_id', 'reference')
        .label('Country')
        .sortField('title')
        .sortDir('ASC')
        .perPage(100)
        .targetEntity(country)
        .targetField(nga.field('title')),

When done this, the actual request sent out is using sortDir=DESC&sortField=id. What are we missing?

Thanks!

cc @Ozonid

@fzaninotto
Copy link
Member

That's a small bug, I just pushed a PR to fix it.

@fzaninotto fzaninotto self-assigned this Mar 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants