You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[User Error] Sort column OrderKey must be an Int, column is of type
GET /admin/pages/edit/show/1
Line 167 in /var/www/default/sortablegridfield/code/forms/GridFieldSortableRows.php
If I manually change the sort order in the DB to something else than 0, it works, but when I add new items to the grid, the value always defaults to 0.
The text was updated successfully, but these errors were encountered:
Could you post your implementation that is causing this issue? You can strip out all but the relevant stuff ($many_many, $many_many_extraFields and the implementation line in getCMSFields).
Also I have a thought, do you per-chance have the gridfield named differently than the many many relationship? If so try making it match see if that fixes the issue (I suspect it will).
I followed this example using Silverstripe 3.1.8: https://github.com/UndefinedOffset/SortableGridField/blob/master/docs/ManyManyExample.md
All I get is the following error:
If I manually change the sort order in the DB to something else than 0, it works, but when I add new items to the grid, the value always defaults to 0.
The text was updated successfully, but these errors were encountered: