Skip to content

Commit

Permalink
Merge pull request #491 from MaMpf-HD/hotfix_empyt_description_check
Browse files Browse the repository at this point in the history
Hotfix: correct check for external reference description
  • Loading branch information
fosterfarrell9 authored May 4, 2023
2 parents cdb8842 + 5016ce1 commit f6dd9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/media_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def edit_or_show_medium_path(medium)
def external_link_description_not_empty(medium)
# Uses link display name if not empty, otherwise falls back to the
# link url itself.
return medium.external_link_description.empty?\
return medium.external_link_description.blank?\
? medium.external_reference_link : medium.external_link_description
end
end

0 comments on commit f6dd9d2

Please sign in to comment.