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

UnsavedRelationList Error with ItemsToRender when no items to return #123

Closed
adrian-stein opened this issue Apr 14, 2016 · 2 comments
Closed

Comments

@adrian-stein
Copy link

I get the following error when there are no widgets to return

[User Error] Uncaught LogicException: filter can't be called on an UnsavedRelationList

Trace
UnsavedRelationList->filter(Enabled,1) 
WidgetArea.php:59
WidgetArea->ItemsToRender() 
WidgetArea.php:33
WidgetArea->WidgetControllers() 
ViewableData.php:402

Using SS 3.2.3 and widgets 1.2.*@dev

@tractorcow
Copy link
Contributor

Fix in core at silverstripe/silverstripe-framework#5348.

Sorry we probably can't fix this earlier than 3.4.0 because it would likely be considered "adding" api to non-feature releases.

@tractorcow
Copy link
Contributor

Fixed with silverstripe/silverstripe-framework#5348
3.4 will be coming out soon :D update to 3.x for now to get this fix.

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

2 participants