Skip to content

Commit

Permalink
[Bug]: 开启锁定子表功能后,主表发起审批,子表锁定,此时子表也锁定,删除审批单后主表解除锁定,但子表未解锁,需要按主表的状态也解锁 #…
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhaolin committed Aug 6, 2024
1 parent a050dd5 commit 147b49f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/standard-objects/workflow/instances.object.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const config = objectql.getSteedosConfig();

const objectUpdate = function (objectApiName, id, data) {
return objectql.wrapAsync(async function () {
return await objectql.getObject(this.objectApiName).update(this.id, this.data)
return await objectql.getObject(this.objectApiName).update(this.id, this.data)
}, { objectApiName: objectApiName, id: id, data: data })
}

Expand Down Expand Up @@ -147,7 +147,7 @@ if (Meteor.isServer) {
// if (recordObj) {
// recordObj.update(recordId, { $unset: { "instances": 1, "instance_state": 1, "locked": 1 } });
// }
objectUpdate(recordObjName, recordId, { "instances": null, "instance_state": null, "locked": null })
objectUpdate(recordObjName, recordId, { "instances": null, "instance_state": null, "locked": false })
}
}
});
Expand Down

0 comments on commit 147b49f

Please sign in to comment.