Skip to content
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

Creating and editing Sections error: Couldn't find the sort field 'SectionSort' #2

Open
towercreative opened this issue Aug 6, 2022 · 1 comment

Comments

@towercreative
Copy link

towercreative commented Aug 6, 2022

For me this generates the error "Couldn't find the sort field 'SectionSort'" when saving sections or opening sections to edit. Initial create works.

To fix edit ShopFrontSection.php line 70
Change
$gridField->getConfig()->addComponent(new GridFieldOrderableRows('SectionSort'));
to
$gridField->getConfig()->addComponent(new GridFieldOrderableRows('Sort'));

@towercreative
Copy link
Author

I think it's once the Section has a linked category from the DisplayLogicWrap.
Products not held in the main shop products don't have the SectionSort, just has the Sort from SiteTree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant