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