-
Notifications
You must be signed in to change notification settings - Fork 91
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
SortOrder column missing #182
Comments
I tried adding a SortOrder column to the MemberProfileClass, but nothing changed. |
Hi @streamflyer - what other modules or extensions do you have installed? In a base installation with memberprofiles and sortablegridfield installed I don't have any issue. The "Sort" being used is referenced in MemberProfilePage ~line 255, where it references the "Sort" field on the MemberProfileField objects. It sounds like you may have a different module/extension in place that's conflicting? |
Hi @nyeholt . I work with the following requirements:
I've uninstalled all non-essential modules and just reinstalled sortablegridfield and memberprofiles. Now I've narrowed the error down to one line of code: Every Page of mine has_many Sections. And these sections are sortable. So on Page.php I have this code:
Now, when I comment out the line "$conf->addComponent(GridFieldSortableRows::create('SortOrder'));", your extensions works. But my sections are not sortable anymore. Any ideas? ;-) Thanks, |
Can you post the code for the Section DO, @streamflyer? Does it have a |
Sure, @michalkleiner , this is the Section Model: `<?php namespace Streamflyer\Section; use Page; use SilverStripe\Forms\GridField\GridField; class Section extends DataObject
}` |
After installing the module, upon creating the Member Profile Page, whenever I want to open the page I get this error message:
[2023-03-09 15:18:55] error-log.WARNING: E_WARNING: Undefined array key "SortOrder" {"code":2,"message":"Undefined array key "SortOrder"","file":"/home/jsgrueni/www/podcastschmiede/live/vendor/undefinedoffset/sortablegridfield/src/Forms/GridFieldSortableRows.php","line":233} []
Can anybody help me fix this? I'm using SS 4.12, installed the module via composer.
The text was updated successfully, but these errors were encountered: