mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 15:59:13 +02:00
LCL, fix can't edit new record where key field value is NULL
git-svn-id: trunk@31361 -
This commit is contained in:
parent
48712541fc
commit
006639bf2a
@ -348,10 +348,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
LinkGetBookMark;
|
LinkGetBookMark;
|
||||||
try
|
try
|
||||||
if FListLink.DataSet.Locate(FKeyFieldNames,
|
try
|
||||||
FControlLink.DataSet.FieldValues[FDataFieldNames], []) then
|
if FListLink.DataSet.Locate(FKeyFieldNames,
|
||||||
Result := FListField.AsString
|
FControlLink.DataSet.FieldValues[FDataFieldNames], []) then
|
||||||
else Result:= '';
|
Result := FListField.AsString;
|
||||||
|
except
|
||||||
|
result := '';
|
||||||
|
end;
|
||||||
finally
|
finally
|
||||||
LinkGotoBookMark;
|
LinkGotoBookMark;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user