diff --git a/api/nodes/serializers.py b/api/nodes/serializers.py index aaff14ac1b95..4f4dddc4bc5a 100644 --- a/api/nodes/serializers.py +++ b/api/nodes/serializers.py @@ -1618,8 +1618,9 @@ def create(self, validated_data): if registration_responses: self.update_registration_responses(draft, registration_responses) - if affiliate_user_institutions and draft.branched_from_type == DraftNode: - draft.affiliated_institutions.set(draft.creator.affiliated_institutions.all()) + if affiliate_user_institutions and isinstance(draft.branched_from, DraftNode): + for institution in draft.creator.get_institution_affiliations(): + draft.affiliated_institutions.add(*draft.creator.affiliated_institutions.all()) return draft