From b4ded6e03e48691ef9928d7a7305e04e0a7155c3 Mon Sep 17 00:00:00 2001 From: Peter Lehwess Date: Wed, 7 Oct 2015 10:41:18 +0200 Subject: [PATCH] Hide custom fields, modules, and types in project create form. --- app/views/projects/_form.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/projects/_form.html.erb b/app/views/projects/_form.html.erb index 062371d463..4f75253a9f 100644 --- a/app/views/projects/_form.html.erb +++ b/app/views/projects/_form.html.erb @@ -45,7 +45,7 @@ See doc/COPYRIGHT.rdoc for more details. <% end %> -<% if project.new_record? %> +<% if project.persisted? %>
<%= render partial: "projects/form/modules", locals: { form: f } %>
@@ -53,14 +53,14 @@ See doc/COPYRIGHT.rdoc for more details. <%= javascript_tag 'observeProjectModules();' %> <% end %> -<% if (project.new_record? || project.module_enabled?('work_package_tracking')) && renderTypes %> +<% if (project.persisted? && project.module_enabled?('work_package_tracking')) && renderTypes %>
<%= render partial: 'projects/form/types', locals: { f: f, project: project } %>
<% end %> -<% if project.new_record? %> +<% if project.persisted? %>
<%= render partial: 'projects/form/custom_fields', locals: {