Skip to content

Commit

Permalink
Merge pull request #40 from juliosenha/master
Browse files Browse the repository at this point in the history
Ajuste em master detail com mais de 2 níveis
  • Loading branch information
viniciussanchez committed Apr 27, 2020
2 parents d40e92e + 7ef14c8 commit b94cc8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/DataSet.Serialize.Import.pas
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ procedure TJSONSerialize.JSONObjectToDataSet(const AJSONObject: TJSONObject; con
Continue;
if LJSONValue is TJSONNull then
Continue;
if TUpdateStatus.usUnmodified.ToString.Equals(LObjectState) then
if not ADataSet.Locate(GetKeyFieldsDataSet(ADataSet), VarArrayOf(GetKeyValuesDataSet(ADataSet, AJSONObject)), []) then
Continue;
if LJSONValue is TJSONObject then
JSONObjectToDataSet(LJSONValue as TJSONObject, LNestedDataSet, True)
else if LJSONValue is TJSONArray then
Expand Down

0 comments on commit b94cc8e

Please sign in to comment.