@@ -84,11 +84,11 class ProjectsController < ApplicationController | |||||
84 |
|
84 | |||
85 | def settings |
|
85 | def settings | |
86 | @root_projects = Project::find(:all, :conditions => ["parent_id is null and id <> ?", @project.id]) |
|
86 | @root_projects = Project::find(:all, :conditions => ["parent_id is null and id <> ?", @project.id]) | |
87 |
@custom_fields = IssueCustomField |
|
87 | @custom_fields = IssueCustomField.find(:all) | |
88 | @issue_category ||= IssueCategory.new |
|
88 | @issue_category ||= IssueCategory.new | |
89 | @member ||= @project.members.new |
|
89 | @member ||= @project.members.new | |
90 |
@roles = Role.find |
|
90 | @roles = Role.find(:all) | |
91 |
@users = User.find |
|
91 | @users = User.find(:all) - @project.members.find(:all, :include => :user).collect{|m| m.user } | |
92 | @custom_values ||= ProjectCustomField.find(:all).collect { |x| @project.custom_values.find_by_custom_field_id(x.id) || CustomValue.new(:custom_field => x) } |
|
92 | @custom_values ||= ProjectCustomField.find(:all).collect { |x| @project.custom_values.find_by_custom_field_id(x.id) || CustomValue.new(:custom_field => x) } | |
93 | end |
|
93 | end | |
94 |
|
94 |
@@ -20,12 +20,12 class ReportsController < ApplicationController | |||||
20 | before_filter :find_project, :authorize |
|
20 | before_filter :find_project, :authorize | |
21 |
|
21 | |||
22 | def issue_report |
|
22 | def issue_report | |
23 |
@statuses = IssueStatus.find |
|
23 | @statuses = IssueStatus.find :all | |
24 |
|
24 | |||
25 | case params[:detail] |
|
25 | case params[:detail] | |
26 | when "tracker" |
|
26 | when "tracker" | |
27 | @field = "tracker_id" |
|
27 | @field = "tracker_id" | |
28 |
@rows = Tracker.find |
|
28 | @rows = Tracker.find :all | |
29 | @data = issues_by_tracker |
|
29 | @data = issues_by_tracker | |
30 | @report_title = l(:field_tracker) |
|
30 | @report_title = l(:field_tracker) | |
31 | render :template => "reports/issue_report_details" |
|
31 | render :template => "reports/issue_report_details" |
@@ -77,8 +77,8 class RolesController < ApplicationController | |||||
77 | flash[:notice] = l(:notice_successful_update) |
|
77 | flash[:notice] = l(:notice_successful_update) | |
78 | end |
|
78 | end | |
79 | end |
|
79 | end | |
80 |
@roles = Role.find |
|
80 | @roles = Role.find :all | |
81 |
@trackers = Tracker.find |
|
81 | @trackers = Tracker.find :all | |
82 | @statuses = IssueStatus.find(:all, :include => :workflows) |
|
82 | @statuses = IssueStatus.find(:all, :include => :workflows) | |
83 | end |
|
83 | end | |
84 | end |
|
84 | end |
General Comments 0
You need to be logged in to leave comments.
Login now