Skip to content

Commit

Permalink
Fix bug with protocols nesting direction
Browse files Browse the repository at this point in the history
  • Loading branch information
hkdobrev committed Jul 10, 2021
1 parent cd053a3 commit 47dc2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocols/entities/protocol.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ export class Protocol {
replacement.section = replacement.section || this.section;
replacement.status = replacementStatus;
replacement.assignees = this.assignees;
replacement.parent = this;

this.status = ProtocolStatus.REPLACED;
this.parent = replacement;
this.addAction(ProtocolAction.createPublishAction(actor));

return replacement;
Expand Down

0 comments on commit 47dc2f2

Please sign in to comment.