Explorar o código

* Fix error in calclookupvalue

Michaël Van Canneyt %!s(int64=4) %!d(string=hai) anos
pai
achega
74d6b0e9f4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/fcl-db/db.pas

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

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