Fixing enable features filtering.

--HG--
branch : dev
This commit is contained in:
andrerod
2011-03-23 14:28:48 -07:00
parent 9ab3d21e48
commit 0b95cc9b72
@@ -203,7 +203,9 @@ namespace Orchard.Packaging.Controllers {
// Enable selected features // Enable selected features
if (packagingInstallViewModel.Features.Count > 0) { if (packagingInstallViewModel.Features.Count > 0) {
IEnumerable<string> featureIds = packagingInstallViewModel.Features.Select(feature => feature.FeatureDescriptor.Id); IEnumerable<string> featureIds = packagingInstallViewModel.Features
.Where(feature => feature.Enable)
.Select(feature => feature.FeatureDescriptor.Id);
// Enable the features and its dependencies // Enable the features and its dependencies
_moduleService.EnableFeatures(featureIds, true); _moduleService.EnableFeatures(featureIds, true);