@@ -67,14 +67,14 class ProjectsController < ApplicationController | |||
|
67 | 67 | end |
|
68 | 68 | |
|
69 | 69 | def new |
|
70 |
@issue_custom_fields = IssueCustomField. |
|
|
70 | @issue_custom_fields = IssueCustomField.sorted.all | |
|
71 | 71 | @trackers = Tracker.sorted.all |
|
72 | 72 | @project = Project.new |
|
73 | 73 | @project.safe_attributes = params[:project] |
|
74 | 74 | end |
|
75 | 75 | |
|
76 | 76 | def create |
|
77 |
@issue_custom_fields = IssueCustomField. |
|
|
77 | @issue_custom_fields = IssueCustomField.sorted.all | |
|
78 | 78 | @trackers = Tracker.sorted.all |
|
79 | 79 | @project = Project.new |
|
80 | 80 | @project.safe_attributes = params[:project] |
@@ -107,7 +107,7 class ProjectsController < ApplicationController | |||
|
107 | 107 | end |
|
108 | 108 | |
|
109 | 109 | def copy |
|
110 |
@issue_custom_fields = IssueCustomField. |
|
|
110 | @issue_custom_fields = IssueCustomField.sorted.all | |
|
111 | 111 | @trackers = Tracker.sorted.all |
|
112 | 112 | @source_project = Project.find(params[:id]) |
|
113 | 113 | if request.get? |
@@ -165,7 +165,7 class ProjectsController < ApplicationController | |||
|
165 | 165 | end |
|
166 | 166 | |
|
167 | 167 | def settings |
|
168 |
@issue_custom_fields = IssueCustomField. |
|
|
168 | @issue_custom_fields = IssueCustomField.sorted.all | |
|
169 | 169 | @issue_category ||= IssueCategory.new |
|
170 | 170 | @member ||= @project.members.new |
|
171 | 171 | @trackers = Tracker.sorted.all |
@@ -43,7 +43,7 module RepositoriesHelper | |||
|
43 | 43 | end |
|
44 | 44 | |
|
45 | 45 | def render_changeset_changes |
|
46 |
changes = @changeset.filechanges. |
|
|
46 | changes = @changeset.filechanges.limit(1000).reorder('path').all.collect do |change| | |
|
47 | 47 | case change.action |
|
48 | 48 | when 'A' |
|
49 | 49 | # Detects moved/copied files |
@@ -88,7 +88,7 module TimelogHelper | |||
|
88 | 88 | |
|
89 | 89 | def entries_to_csv(entries) |
|
90 | 90 | decimal_separator = l(:general_csv_decimal_separator) |
|
91 |
custom_fields = TimeEntryCustomField. |
|
|
91 | custom_fields = TimeEntryCustomField.all | |
|
92 | 92 | export = FCSV.generate(:col_sep => l(:general_csv_separator)) do |csv| |
|
93 | 93 | # csv header fields |
|
94 | 94 | headers = [l(:field_spent_on), |
@@ -30,6 +30,8 class CustomField < ActiveRecord::Base | |||
|
30 | 30 | validate :validate_custom_field |
|
31 | 31 | before_validation :set_searchable |
|
32 | 32 | |
|
33 | scope :sorted, order("#{table_name}.position ASC") | |
|
34 | ||
|
33 | 35 | CUSTOM_FIELDS_TABS = [ |
|
34 | 36 | {:name => 'IssueCustomField', :partial => 'custom_fields/index', |
|
35 | 37 | :label => :label_issue_plural}, |
General Comments 0
You need to be logged in to leave comments.
Login now