Skip to content

Commit

Permalink
Merge pull request #163 from ontoportal-lirmm/fix/version-with-number…
Browse files Browse the repository at this point in the history
…-types

cast to string submission version of type number
  • Loading branch information
syphax-bouazzouni authored Jan 18, 2023
2 parents 589ac76 + d9024dd commit d0bccf4
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 d0bccf4

Please sign in to comment.