From 88b7fd24b12820d7727d35d72711136fc80423eb Mon Sep 17 00:00:00 2001 From: wanglinchun Date: Wed, 21 May 2014 19:59:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E6=96=B0=E5=BB=BA=E5=8F=82=E8=B5=9B?= =?UTF-8?q?=E4=BD=9C=E5=93=81=E4=B8=AD=E6=89=98=E7=AE=A1=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4=E9=80=89=E9=A1=B9=EF=BC=8C?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=88=B7=E8=87=AA=E8=A1=8C=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E9=9C=80=E8=A6=81=E5=B0=86=E5=8F=82=E8=B5=9B?= =?UTF-8?q?=E4=BD=9C=E5=93=81=E6=89=98=E7=AE=A1=E5=88=B0=E5=88=B6=E5=AE=9A?= =?UTF-8?q?=E7=9A=84=E9=A1=B9=E7=9B=AE=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/contests_helper.rb | 1 + app/views/softapplications/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 %>