From 52caae45df99a9be87571d78b41b895e34979329 Mon Sep 17 00:00:00 2001 From: Moises Machado Date: Tue, 21 Apr 2009 09:32:17 -0300 Subject: [PATCH] ActionItem1003: fixed no features selected for environment not working --- app/views/features/_features_table.rhtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/features/_features_table.rhtml b/app/views/features/_features_table.rhtml index 91cc937..58a72eb 100644 --- a/app/views/features/_features_table.rhtml +++ b/app/views/features/_features_table.rhtml @@ -1,7 +1,8 @@ <% labelled_form_for(:environment, @environment, :url => {:action => 'update'}) do |f| %> - <% @features.each do |feature, text| %> + <%= hidden_field_tag('environment[enabled_features][]', '') %> + <% @features.each do |feature, text| %> -- libgit2 0.21.2
<%= text %> <%= check_box_tag "environment[enabled_features][]", feature, @environment.enabled?(feature) %>