Skip to content

Commit

Permalink
[webui] Fix doubled to_hash regression
Browse files Browse the repository at this point in the history
  • Loading branch information
saschpe committed Mar 20, 2012
1 parent 65fd866 commit bc45af7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webui/app/controllers/project_controller.rb
Expand Up @@ -1524,6 +1524,7 @@ def require_project
# Is this a maintenance master project ?
@is_maintenance_project = false
@is_maintenance_project = true if @project.project_type and @project.project_type == "maintenance"

if @is_maintenance_project
@maintained_projects = []
@project.each("maintenance/maintains") do |maintained_project_name|
Expand All @@ -1532,7 +1533,7 @@ def require_project
end
# Is this a maintenance incident project?
@is_incident_project = false
@is_incident_project = true if @project.to_hash["project_type"] == "maintenance_incident"
@is_incident_project = true if @project.project_type and @project.project_type == 'maintenance_incident'
end

def load_requests
Expand Down

0 comments on commit bc45af7

Please sign in to comment.