Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixes #5172 - typo SETTINGS[:location_enabled] instead of :locations_…
…enabled causes default location select box not to be visible
  • Loading branch information
Joseph Magen authored and dLobatog committed Apr 16, 2014
1 parent a047e0d commit 936bab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/users/_form.html.erb
Expand Up @@ -23,12 +23,12 @@
<%= text_f f, :lastname %>
<%= text_f f, :mail %>
<% if SETTINGS[:location_enabled] %>
<% if SETTINGS[:locations_enabled] %>
<%= select_f f, :default_location_id, (@user.admin? ? Location.all : @user.locations), :id, :title,
{ :include_blank => true }, { :label => _('Default location') } %>
<% end %>
<% if SETTINGS[:organization_enabled] %>
<% if SETTINGS[:organizations_enabled] %>
<%= select_f f, :default_organization_id,(@user.admin? ? Organization.all : @user.organizations), :id, :title,
{ :include_blank => true }, { :label => _('Default organization') } %>
<% end %>
Expand Down

0 comments on commit 936bab0

Please sign in to comment.