Skip to content

Commit

Permalink
Merge pull request #1712 from datadryad/bug-fix
Browse files Browse the repository at this point in the history
Remove bad activity log links
  • Loading branch information
ryscher authored Jun 18, 2024
2 parents ee2aa2a + 0d7db5d commit 908b6a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/helpers/stash_engine/admin_datasets_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ def format_external_references(instring)
return '' unless instring.present?

# Stripe invoice references
return render inline: link_to(instring, "https://dashboard.stripe.com/invoices/#{instring}", target: :_blank) if instring.start_with?('in_')
if instring.start_with?('in_') && !instring.start_with?('in_progress')
return render inline: link_to(instring, "https://dashboard.stripe.com/invoices/#{instring}",
target: :_blank)
end

# Turn salesforce references into hyperlinks
matchdata = instring.match(/(.*)SF ?#? ?(\d+)(.*)/)
Expand Down

0 comments on commit 908b6a4

Please sign in to comment.