year fix in honor

This commit is contained in:
Harry Bomrah 2016-01-13 18:42:14 +08:00
parent 8b55567fe6
commit 2a2cb7637c
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@
<div class="control-group"> <div class="control-group">
<label class="control-label muted"><%= t("personal_honor.year") %></label> <label class="control-label muted"><%= t("personal_honor.year") %></label>
<div class="controls"> <div class="controls">
<%= select_year((@honor.year ? @honor.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'honor[year]', :class => "span1"} ) %> <%= select_year(@honor.year, {:start_year => DateTime.now.year, :end_year => 1930, :prompt => "Choose year"}, {:name => 'honor[year]', :class => "span1"} ) %>
</div> </div>
</div> </div>