mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 11:59:18 +02:00
lcl: clear field list before calling GetFieldList
git-svn-id: trunk@37055 -
This commit is contained in:
parent
2b436be529
commit
90d47a6dea
@ -266,6 +266,7 @@ begin
|
||||
FKeyFieldNames := FControlLink.Field.LookupKeyFields;
|
||||
end else
|
||||
FDataFieldNames := FControlLink.Field.FieldName;
|
||||
FDataFields.Clear;
|
||||
FControlLink.DataSet.GetFieldList(FDataFields, FDataFieldNames);
|
||||
end;
|
||||
end;
|
||||
@ -289,6 +290,7 @@ begin
|
||||
try
|
||||
if FListLink.DataSet.Active then
|
||||
begin
|
||||
FKeyFields.Clear;
|
||||
FListLink.DataSet.GetFieldList(ListFields, FListFieldName);
|
||||
FListLink.DataSet.GetFieldList(FKeyFields, FKeyFieldNames);
|
||||
if FHasLookUpField then
|
||||
|
Loading…
Reference in New Issue
Block a user