Fix: Device import case-sensitive serial numbers
This commit is contained in:
@@ -113,7 +113,7 @@ namespace Disco.Services.Devices.Importing
|
||||
|
||||
Device existingDevice = null;
|
||||
if (DeviceSerialNumberImportField.IsDeviceSerialNumberValid(deviceSerialNumber))
|
||||
existingDevice = cache.Devices.FirstOrDefault(device => device.SerialNumber == deviceSerialNumber);
|
||||
existingDevice = cache.FindDevice(deviceSerialNumber);
|
||||
|
||||
var fields = columns.Select(h =>
|
||||
{
|
||||
|
||||
@@ -23,13 +23,13 @@ namespace Disco.Services.Devices.Importing
|
||||
{
|
||||
context = Context;
|
||||
rawData = RawData;
|
||||
currentRowIndex = 0;
|
||||
rowOffset = currentRowIndex = HasHeaderRow ? 2 : 1;
|
||||
currentRowIndex = -1;
|
||||
rowOffset = HasHeaderRow ? 2 : 1;
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
currentRowIndex = 0;
|
||||
currentRowIndex = -1;
|
||||
currentRow = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user