summaryrefslogtreecommitdiffstats
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-29 20:13:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-29 20:13:02 +0000
commit05ff26c141b32160fc6e53cbc0477daa0589b4d9 (patch)
treee016281e7b05d7a45cb39ffd0724858b30da43e8 /app/controllers/projects_controller.rb
parent39c9874a41028c7ec5f67207d698947c751d9484 (diff)
downloadredmine-05ff26c141b32160fc6e53cbc0477daa0589b4d9.tar.gz
redmine-05ff26c141b32160fc6e53cbc0477daa0589b4d9.zip
Fixed: "subproject of" list should not show archived projects.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@678 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 6922c98ba..8d8250d20 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -66,7 +66,7 @@ class ProjectsController < ApplicationController
# Add a new project
def add
@custom_fields = IssueCustomField.find(:all)
- @root_projects = Project.find(:all, :conditions => "parent_id is null")
+ @root_projects = Project.find(:all, :conditions => "parent_id IS NULL AND status = #{Project::STATUS_ACTIVE}")
@project = Project.new(params[:project])
if request.get?
@custom_values = ProjectCustomField.find(:all).collect { |x| CustomValue.new(:custom_field => x, :customized => @project) }
@@ -102,7 +102,7 @@ class ProjectsController < ApplicationController
end
def settings
- @root_projects = Project::find(:all, :conditions => ["parent_id is null and id <> ?", @project.id])
+ @root_projects = Project::find(:all, :conditions => ["parent_id IS NULL AND status = #{Project::STATUS_ACTIVE} AND id <> ?", @project.id])
@custom_fields = IssueCustomField.find(:all)
@issue_category ||= IssueCategory.new
@member ||= @project.members.new