Browse Source

* Fix error in calclookupvalue

Michaël Van Canneyt 4 years ago
parent
commit
74d6b0e9f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/db.pas

+ 1 - 1
packages/fcl-db/db.pas

@@ -5715,7 +5715,7 @@ begin
 //  if FLookupCache then
 //  if FLookupCache then
 //    Value := LookupList.ValueOfKey(FDataSet.FieldValues[FKeyFields])
 //    Value := LookupList.ValueOfKey(FDataSet.FieldValues[FKeyFields])
 //  else if
 //  else if
-  if Assigned(FLookupDataSet) and FDataSet.Active then
+  if Assigned(FLookupDataSet) and FLookupDataSet.Active then
     Value := FLookupDataSet.Lookup(FLookupKeyfields, FDataSet.FieldValues[FKeyFields], FLookupresultField)
     Value := FLookupDataSet.Lookup(FLookupKeyfields, FDataSet.FieldValues[FKeyFields], FLookupresultField)
   else
   else
     Value:=Null;
     Value:=Null;