In your order display, when you add a Draggableviews field and use the Native handler -> your view needs to have the 'Draggableviews:weight' sort field.

I have answered multple few issues where the problem was exactly related to this issue, where they forgot to add the 'Draggableviews:weight' sort field.

I think there should be a warning. 'Hey I see you selected the Native Handler. You need to add the Draggablviews: Weight field under Sort Criteria, or this view will not work properly.'

Other warning message I can think of that are related
I probably should create a seperate issue for theses below:

  • 'Hey I see you have Draggableviews: Weight field under Sort Criteria, however it's position is not first. This field needs to be first, or this view will not work properly'. (could be a problem if there is more than 1 Draggableivews: weight field. Use case is is in Group by)
  • 'Hey I see you have Draggableviews: Weight field under Sort Criteria. You should remove this, as this is only for Native handler and you are using a __________________ handler.' (again could be a problem if there is more than 1 Draggableviews:weight field. Use case is in Group by)

Comments

sonicthoughts’s picture

Issue summary: View changes

I am getting this error and sort is working. I have several displays in one view including the draggable views admin display. Only one of the page views has the Draggable weight options. Should I still be getting: Notice: Undefined index: sorts in draggableviews_handler_fieldapi->options_form() (line 32 of /home/xxxxx/public_html/drupal/sites/all/modules/draggableviews/handlers/draggableviews_handler_fieldapi.inc). ?

istryker’s picture

I feel like you view is not set up correctly. You are getting a error related to using FieldApi handler, not the native handler