diff --git a/app/models/combination.rb b/app/models/combination.rb index 5919cfc899..78742a5d75 100644 --- a/app/models/combination.rb +++ b/app/models/combination.rb @@ -478,7 +478,7 @@ def reset_protonyms_by_rank end def validate_absence_of_subject_relationships - if TaxonNameRelationship.where(subject_taxon_name_id: self.id).any? + if TaxonNameRelationship.where(subject_taxon_name_id: self.id).where("type NOT LIKE 'TaxonNameRelationship::CurrentCombination'").any? errors.add(:base, 'This combination could not be used as a Subject in any TaxonNameRelationships.') end end