Skip to content

Commit

Permalink
Update name.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
lmrodriguezr committed Oct 9, 2024
1 parent 3d0b2ad commit 4a62c56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,7 @@ def type_link
def type_name(check_material = true)
if !check_material || type_is_name?
@type_name ||= self.class.where(id: type_accession).first
@type_name == self ? nil : @type_name # Avoid self-referencing issues
end
end

Expand Down

0 comments on commit 4a62c56

Please sign in to comment.