Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
Changing to use path instead of entire URL to avoid apache error
Browse files Browse the repository at this point in the history
refs #773
  • Loading branch information
carolyncole committed Jan 11, 2019
1 parent 72bf027 commit 478342e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/shared/input_partials/_creator.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
field.options.merge!(list: "#{field.label}_role", value: field_value.fetch(:role, nil)) %>
<datalist id="<%= "#{field.label}_role" %>">
<% field.datalist(component: :roles).each do |item| %>
<option value="<%= item %>"><%= item.label %></option>
<option value="<%= item.path %>"><%= item.label %></option>
<% end %>
</datalist>
</div>
Expand Down
4 changes: 2 additions & 2 deletions spec/support/shared/views.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
end

assert_select 'datalist[id=?]', 'creator_role'
assert_select 'option[value=?]', 'http://id.loc.gov/vocabulary/relators/bsl'
assert_select 'option[value=?]', '/vocabulary/relators/bsl'
assert_select 'option', 'blasting'
assert_select 'option[value=?]', 'http://id.loc.gov/vocabulary/relators/cli'
assert_select 'option[value=?]', '/vocabulary/relators/cli'
assert_select 'option', 'climbing'

assert_select 'datalist[id=?]', 'creator_agent'
Expand Down

0 comments on commit 478342e

Please sign in to comment.