Skip to content

Commit

Permalink
Makes sure helper renders the correct URI
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcorrea committed May 18, 2016
1 parent 64238e6 commit b863534
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/helpers/sufia/sufia_helper_behavior.rb
Expand Up @@ -146,8 +146,10 @@ def search_form_action
end

def render_visibility_link(document)
# Anchor must match with a tab in
# https://github.com/projecthydra/sufia/blob/master/app/views/curation_concerns/base/_guts4form.html.erb#L2
link_to render_visibility_label(document),
edit_polymorphic_path([main_app, document], anchor: "permissions_display"),
edit_polymorphic_path([main_app, document], anchor: "share"),
id: "permission_" + document.id, class: "visibility-link"
end

Expand Down

0 comments on commit b863534

Please sign in to comment.