--HG--
branch : dev
This commit is contained in:
Dave Reed
2011-03-23 15:30:01 -07:00

View File

@@ -199,6 +199,12 @@ namespace Lists.Controllers {
if (container == null && model.SourceContainerId != 0) {
return HttpNotFound();
}
if (string.IsNullOrEmpty(model.FilterByContentType)) {
var targetContainer = _contentManager.Get<ContainerPart>(model.TargetContainerId);
if (targetContainer != null) {
model.FilterByContentType = targetContainer.Record.ItemContentType;
}
}
var query = _contentManager.Query<ContainablePart>(VersionOptions.Latest);