Skip to content

Commit

Permalink
cast to string submission version of type number
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Jan 18, 2023
1 parent 589ac76 commit d9024dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/ontologies_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def notes_link(ontology, count)

# Creates a link based on the status of an ontology submission
def status_link(submission, latest = false, target = '')
version_text = submission.version.nil? || submission.version.length == 0 ? 'unknown' : submission.version
version_text = submission.version.nil? || submission.version.to_s.length == 0 ? 'unknown' : submission.version.to_s
status_text = " <span class='ontology_submission_status'>" + submission_status2string(submission) + '</span>'
if submission.ontology.summaryOnly || latest == false
version_link = version_text
Expand Down

0 comments on commit d9024dd

Please sign in to comment.