Just added the Dragabble Views field in Views and on the field config screen I Am seeing this warning.
Notice: Undefined index: sorts in options_form() (line 32 of draggableviews/handlers/draggableviews_handler_fieldapi.inc
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | undefined_sort-1915394-6.patch | 1.71 KB | istryker |
| #2 | viewexport.txt | 3.4 KB | giorgio79 |
| #2 | screenshot.png | 40.98 KB | giorgio79 |
Comments
Comment #1
istryker commentedI have seen this as an issue with Commerce Kickstart products. I believe is was do to mis-configured View.
Need more information, the export of the view or images
Comment #2
giorgio79 commentedSure, attaching screenshot and export of this super simple view :)
Comment #3
istryker commentedOkay, I can confirm this. I am getting this error in my watchdog, but not the screen. This happen when I open the field config and again when I close the config (by either clicking the Apply or Cancel button).
Comment #4
istryker commentedFYI - #2 view is misconfigured. I have created a new issue around this #1915588: Need warning when using Native and are not using 'Draggableviews: Weight' sort
Comment #5
geraldito commentedI get the same warning even I have have the 'Draggableviews:weight' sort field enabled.
Comment #6
janekD7 commentedI also get the same warning, but only on remote server. When I work on localhost everything works just fine. Strange.
Of course 'Draggablevies:weight' is enabled in both cases.
What is more when I click on weight field in sorting section I get other error:
Warning: Invalid argument supplied for foreach() in (here is the views_plugin_display.inc file path ) on line 289similar to this
http://drupal.org/node/1546202#comment-6699766
EDIT:
It turns out that on remote server I have
error_reporting(E_ALL)so I gets Warnings and Notices unlike my local server when error reporting level was higher (only errors).Comment #7
istryker commentedI am not getting an errors locally, but looking at the code I should get one.
Patch Attached that adds
isset()check.Comment #8
joelstein commentedPatch in #7 works for me.
Comment #10
istryker commentedRan test manually and it passed. Committed