From d3f886d99278f60622e1f1a4333017d8b5111b04 Mon Sep 17 00:00:00 2001 From: yanxd Date: Wed, 9 Apr 2014 21:44:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E8=83=BD=E6=96=B0=E5=BB=BA=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=20=E5=9C=A8=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/projects/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb index fd81c636e..4bc094f7e 100644 --- a/app/views/projects/index.html.erb +++ b/app/views/projects/index.html.erb @@ -10,7 +10,7 @@ <%= l(:label_user_location) %> : <% if User.current.logged? %> - <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %> + <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type =>( @project_type||=0)}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %> <% end %>