diff --git a/app/helpers/contests_helper.rb b/app/helpers/contests_helper.rb index fff2f785a..24df6a752 100644 --- a/app/helpers/contests_helper.rb +++ b/app/helpers/contests_helper.rb @@ -159,6 +159,7 @@ module ContestsHelper def select_option_helper option tmp = Hash.new + tmp={"" => ""} option.each do |project| tmp[project.name] = project.identifier end diff --git a/app/views/softapplications/show.html.erb b/app/views/softapplications/show.html.erb index 3ec5d0ddd..1e3030c06 100644 --- a/app/views/softapplications/show.html.erb +++ b/app/views/softapplications/show.html.erb @@ -48,7 +48,7 @@ - <% unless @softapplication.deposit_project.nil? %> + <% if (@softapplication.deposit_project != "nil" && @softapplication.deposit_project != "") %> <%#= textilizable ("托管项目: " + @project.name) %> 托管项目:<%= link_to "#@project", project_path(@project.id) %> <% end %>