LookupGrid: dont skip updating values when list of values is empty

This commit is contained in:
Jonathan Jenne 2021-03-26 15:06:02 +01:00
parent f3f6599fc0
commit 9bcd8d0c81

View File

@ -148,7 +148,7 @@ Public Class RepositoryItemLookupControl3
End Sub
Private Sub UpdateSelectedValues(Values As List(Of String))
If Values Is Nothing OrElse Values.Count = 0 Then
If Values Is Nothing Then
Exit Sub
End If
@ -157,7 +157,7 @@ Public Class RepositoryItemLookupControl3
If MultiSelect = True Then
Select Case Values.Count
Case 0
NullText = _R.GetString("LookupControl_NoRecords")
NullText = String.Empty
Case 1
NullText = Values.FirstOrDefault()
Case Else