소스 검색

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>