LookupGrid: Fix error causing multiple entries in lookup control

This commit is contained in:
Jonathan Jenne
2021-04-07 13:42:14 +02:00
parent 96f3ece84e
commit 383c1ce301
2 changed files with 18 additions and 10 deletions

View File

@@ -233,11 +233,13 @@ Public Class RepositoryItemLookupControl3
If oForm.NewValues.Count > 0 AndAlso TypeOf DataSource Is DataTable Then
Dim oTable As DataTable = DirectCast(DataSource, DataTable)
For Each oValue In oForm.NewValues
Dim oRow = oTable.NewRow()
oRow.Item(0) = oValue
oTable.Rows.Add(oRow)
Next
If oTable.TableName <> NAME_DATATABLE_INTERNAL Then
For Each oValue In oForm.NewValues
Dim oRow = oTable.NewRow()
oRow.Item(0) = oValue
oTable.Rows.Add(oRow)
Next
End If
End If
End If
End Using