add bulk edit and bulk update actions for time entries (#7996).
get bulk edit form action working by mapping permissions. Contributed by Adam Soltys. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5313 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -431,6 +431,12 @@ class Project < ActiveRecord::Base
|
||||
def all_issue_custom_fields
|
||||
@all_issue_custom_fields ||= (IssueCustomField.for_all + issue_custom_fields).uniq.sort
|
||||
end
|
||||
|
||||
# Returns an array of all custom fields enabled for project time entries
|
||||
# (explictly associated custom fields and custom fields enabled for all projects)
|
||||
def all_time_entry_custom_fields
|
||||
@all_time_entry_custom_fields ||= (TimeEntryCustomField.for_all + time_entry_custom_fields).uniq.sort
|
||||
end
|
||||
|
||||
def project
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user