mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing enable features filtering.
--HG-- branch : dev
This commit is contained in:
+3
-1
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user