Browse Source

default selected value for scenario.icon select (#1861)

Enfop 8 years ago
parent
commit
b8765fbd31
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/views/scenarios/_form.html.erb

+ 1 - 1
app/views/scenarios/_form.html.erb

@@ -51,7 +51,7 @@
       <div class="form-group">
         <div>
           <%= f.label :icon %>
-          <%= f.select(:icon, options_for_select(Scenario.icons), {},
+          <%= f.select(:icon, options_for_select(Scenario.icons, @scenario.icon), {},
             {:style => "font-family:'FontAwesome', Arial;", :class => 'select2-fountawesome-icon'}) %>
         </div>
       </div>