bug fix #168 device export: batch filtering inverted
This commit is contained in:
@@ -52,7 +52,7 @@ namespace Disco.Services.Devices
|
|||||||
break;
|
break;
|
||||||
case DeviceExportTypes.Batch:
|
case DeviceExportTypes.Batch:
|
||||||
if (Options.ExportTypeTargetId.HasValue && Options.ExportTypeTargetId.Value > 0)
|
if (Options.ExportTypeTargetId.HasValue && Options.ExportTypeTargetId.Value > 0)
|
||||||
query = query.Where(d => d.DeviceBatchId != Options.ExportTypeTargetId);
|
query = query.Where(d => d.DeviceBatchId == Options.ExportTypeTargetId);
|
||||||
else
|
else
|
||||||
query = query.Where(d => d.DeviceBatchId != null);
|
query = query.Where(d => d.DeviceBatchId != null);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user