Skip to content

Commit

Permalink
combination relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
proceps committed Oct 10, 2024
1 parent d0d616a commit 31c4581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/combination.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31c4581

Please sign in to comment.