From c2789dae34c60eb2fa5f618c3d8a48abce212100 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 8 Dec 2011 00:22:46 +0200 Subject: [PATCH] fix project creation --- app/views/projects/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/_form.html.haml b/app/views/projects/_form.html.haml index 5901801b..0f4f108b 100644 --- a/app/views/projects/_form.html.haml +++ b/app/views/projects/_form.html.haml @@ -29,7 +29,7 @@ %cite.right= "http://#{GIT_HOST["host"]}/" %td= f.text_field :code, :placeholder => "example" - - unless @project.heads.empty? + - unless @project.new_record? || @project.heads.empty? %tr %td= f.label :default_branch, "Default Branch" %td= f.select(:default_branch, @project.heads.map(&:name), {}, :style => "width:300px;")