From f74d49b96e26885a73eeab9a85836d1f44426a23 Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Wed, 9 Nov 2016 16:27:07 +1100 Subject: [PATCH] Fix Device Batch Managed Groups --- .../ManagedGroups/DeviceBatchAssignedUsersManagedGroup.cs | 2 +- .../Devices/ManagedGroups/DeviceBatchDevicesManagedGroup.cs | 2 +- Disco.Web/Areas/API/Controllers/DeviceBatchController.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Disco.Services/Devices/ManagedGroups/DeviceBatchAssignedUsersManagedGroup.cs b/Disco.Services/Devices/ManagedGroups/DeviceBatchAssignedUsersManagedGroup.cs index f2c74c57..aedd9648 100644 --- a/Disco.Services/Devices/ManagedGroups/DeviceBatchAssignedUsersManagedGroup.cs +++ b/Disco.Services/Devices/ManagedGroups/DeviceBatchAssignedUsersManagedGroup.cs @@ -57,7 +57,7 @@ namespace Disco.Services.Devices.ManagedGroups repositorySubscription = RepositoryEvents.Value .Where(e => (((Device)e.Entity).DeviceBatchId == DeviceBatchId) || - (e.EventType == RepositoryMonitorEventType.Modified && e.GetPreviousPropertyValue("DeviceBatchId") == DeviceBatchId)) + (e.EventType == RepositoryMonitorEventType.Modified && e.GetPreviousPropertyValue("DeviceBatchId") == DeviceBatchId)) .Subscribe(ProcessRepositoryEvent); } diff --git a/Disco.Services/Devices/ManagedGroups/DeviceBatchDevicesManagedGroup.cs b/Disco.Services/Devices/ManagedGroups/DeviceBatchDevicesManagedGroup.cs index 3d2f0c6a..71e9f961 100644 --- a/Disco.Services/Devices/ManagedGroups/DeviceBatchDevicesManagedGroup.cs +++ b/Disco.Services/Devices/ManagedGroups/DeviceBatchDevicesManagedGroup.cs @@ -55,7 +55,7 @@ namespace Disco.Services.Devices.ManagedGroups repositorySubscription = RepositoryEvents.Value .Where(e => (((Device)e.Entity).DeviceBatchId == DeviceBatchId) || - (e.EventType == RepositoryMonitorEventType.Modified && e.GetPreviousPropertyValue("DeviceBatchId") == DeviceBatchId)) + (e.EventType == RepositoryMonitorEventType.Modified && e.GetPreviousPropertyValue("DeviceBatchId") == DeviceBatchId)) .Subscribe(ProcessRepositoryEvent); } diff --git a/Disco.Web/Areas/API/Controllers/DeviceBatchController.cs b/Disco.Web/Areas/API/Controllers/DeviceBatchController.cs index 36755cee..003fc0a6 100644 --- a/Disco.Web/Areas/API/Controllers/DeviceBatchController.cs +++ b/Disco.Web/Areas/API/Controllers/DeviceBatchController.cs @@ -500,7 +500,7 @@ namespace Disco.Web.Areas.API.Controllers DeviceBatch.AssignedUsersLinkedGroup = configJson; Database.SaveChanges(); - var managedGroup = DeviceBatchDevicesManagedGroup.Initialize(DeviceBatch); + var managedGroup = DeviceBatchAssignedUsersManagedGroup.Initialize(DeviceBatch); if (managedGroup != null) // Sync Group return ADManagedGroupsSyncTask.ScheduleSync(managedGroup); }