Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/helpers/tags_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def wrangler_list(wranglers, tag)
end

def link_to_tag(tag, options = {})
link_to_tag_with_text(tag, tag.display_name, options)
display_name = tag.errors.key?(:name) ? tag.name_was : tag.display_name
link_to_tag_with_text(tag, display_name, options)
end

def link_to_tag_works(tag, options = {})
Expand Down
1 change: 1 addition & 0 deletions features/tags_and_wrangling/tag_wrangling_special.feature
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Feature: Tag Wrangling - special cases
When I fill in "Name" with "Amelia"
And I press "Save changes"
Then I should see "Name can only be changed by an admin."
And I should see "Edit Amelie Tag"

Scenario: Change capitalisation of a tag

Expand Down
Loading