Skip to content

Commit

Permalink
Bug to export
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusvicente100 committed Aug 15, 2019
1 parent 06ddd8f commit d389036
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/DataSet.Serialize.DS.Impl.pas
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,10 @@ function TDataSetSerialize.DataSetToJSONObject(const ADataSet: TDataSet): TJSONO
ADataSet.GetDetailDataSets(LDataSetDetails);
for LNestedDataSet in LDataSetDetails do
begin
if not(LNestedDataSet.RecordCount > 0) then
Continue;
if (FOnlyUpdatedRecords) and (LNestedDataSet is TFDDataSet) then
TFDDataSet(LNestedDataSet).FilterChanges := [rtInserted, rtModified, rtDeleted];
Result.AddPair(LowerCase(TDataSetSerializeUtils.FormatDataSetName(LNestedDataSet.Name)), DataSetToJSONArray(LNestedDataSet));
if (LNestedDataSet.RecordCount > 0) then
Result.AddPair(LowerCase(TDataSetSerializeUtils.FormatDataSetName(LNestedDataSet.Name)), DataSetToJSONArray(LNestedDataSet));
if (FOnlyUpdatedRecords) and (LNestedDataSet is TFDDataSet) then
TFDDataSet(LNestedDataSet).FilterChanges := [rtInserted, rtModified, rtUnmodified];
end;
Expand Down

0 comments on commit d389036

Please sign in to comment.