OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce I can't sort customers by ID

This topic contains 2 replies, has 2 voices, and was last updated by  Mauro Chojrin 1 month, 2 weeks ago.

  • Creator
    Topic
  • #40989

    Mauro Chojrin
    Participant

    Hi:

    I’m having a weird problem: when I’m at http://localhost:8000/admin/customer/ and I add the ID field to the grid I can sort by any column except for ID.

    I tried it in differente screens (like contacts for instance) and it works fine.

    I tried it both in the VM and production and got the same effect… My OroCommerce version is 3.1.12.

    Any ideas? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #41070
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi Mauro,

    Looks like there is no sorter configured for the column. You can add a datagrid sorter for an ID field manually from a custom datagrids.yml in your bundles. all the data grid configs are merged across the bundles.

    #41073

    Mauro Chojrin
    Participant

    Thanks Andrey!

    Just tried it and it worked! (I can’t believe it work at the first try :)).

    I’ll leave the file I changed in case it can help someone else:

    I placed a datagrid.yml file inside my bundles Resources/config/oro/ dir containing:

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No