Преглед изворни кода

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

Enfop пре 8 година
родитељ
комит
b8765fbd31
1 измењених фајлова са 1 додато и 1 уклоњено
  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>