diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-27 20:13:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-27 20:13:56 +0000 |
commit | ce6cf66f6c3af26383cd25ed012d908be4b40bae (patch) | |
tree | dfecb66fd8cca4de280494515e0ad21ec6f32dfd /app/controllers/timelog_controller.rb | |
parent | a4a8b6381e4a162da85319e216a770ee7bd82202 (diff) | |
download | redmine-ce6cf66f6c3af26383cd25ed012d908be4b40bae.tar.gz redmine-ce6cf66f6c3af26383cd25ed012d908be4b40bae.zip |
Custom fields refactoring: most of code moved from controllers to models (using new module ActsAsCustomizable).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1592 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r-- | app/controllers/timelog_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index 2e257c5aa..cf1c844df 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -54,7 +54,7 @@ class TimelogController < ApplicationController } # Add list and boolean custom fields as available criterias - @project.all_custom_fields.select {|cf| %w(list bool).include? cf.field_format }.each do |cf| + @project.all_issue_custom_fields.select {|cf| %w(list bool).include? cf.field_format }.each do |cf| @available_criterias["cf_#{cf.id}"] = {:sql => "(SELECT c.value FROM custom_values c WHERE c.custom_field_id = #{cf.id} AND c.customized_type = 'Issue' AND c.customized_id = issues.id)", :format => cf.field_format, :label => cf.name} |