#20349: Fix Orphans Widgets in WidgetService

Work Item: 20349
This commit is contained in:
agriffard
2013-12-18 13:23:43 +01:00
parent ff7bd9035f
commit 43ad02b0f1

View File

@@ -55,6 +55,7 @@ namespace Orchard.Widgets.Services {
public IEnumerable<WidgetPart> GetOrphanedWidgets() {
return _contentManager
.Query<WidgetPart, WidgetPartRecord>()
.Where<CommonPartRecord>(x => x.Container == null)
.List();
}