Commit 52caae45df99a9be87571d78b41b895e34979329
Committed by
Antonio Terceiro
1 parent
ec355083
Exists in
master
and in
22 other branches
ActionItem1003: fixed no features selected for environment not working
when no checkbox is checked in the features table and submitted there is no change on the environment
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/views/features/_features_table.rhtml
| 1 | 1 | <% labelled_form_for(:environment, @environment, :url => {:action => 'update'}) do |f| %> |
| 2 | 2 | |
| 3 | 3 | <table> |
| 4 | - <% @features.each do |feature, text| %> | |
| 4 | + <%= hidden_field_tag('environment[enabled_features][]', '') %> | |
| 5 | + <% @features.each do |feature, text| %> | |
| 5 | 6 | <tr> |
| 6 | 7 | <td><%= text %></td> |
| 7 | 8 | <td><%= check_box_tag "environment[enabled_features][]", feature, @environment.enabled?(feature) %></td> | ... | ... |