diff --git a/src/protocols/entities/protocol.entity.ts b/src/protocols/entities/protocol.entity.ts index 8d15943c..24e27924 100644 --- a/src/protocols/entities/protocol.entity.ts +++ b/src/protocols/entities/protocol.entity.ts @@ -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;