Skip to content

Commit 483da23

Browse files
committed
Merge pull request parse-community#737 from ParsePlatform/nlutsenko.deepsave
Fix potentially not saved objects if they are not initially dirty.
2 parents 5a8deaf + 4661d6e commit 483da23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parse/PFObject.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ - (BFTask *)saveAsync:(BFTask *)toAwait {
14021402
[self startSave];
14031403
BFTask *childrenTask = [self _saveChildrenInBackgroundWithCurrentUser:currentUser
14041404
sessionToken:sessionToken];
1405-
if (!dirty && changes.count != 0) {
1405+
if (!dirty && changes.count == 0) {
14061406
return childrenTask;
14071407
}
14081408
return [[childrenTask continueWithSuccessBlock:^id(BFTask *task) {

0 commit comments

Comments
 (0)