From e7f7930b4ca72e1e54dc5fd192cea70e396c3c57 Mon Sep 17 00:00:00 2001 From: Aleksander Palyan Date: Wed, 28 Dec 2011 12:36:00 +0200 Subject: [PATCH] Fixed undefined method 'visible_by' for # (Bug #6520) for Redmine 1.3.x --- app/controllers/timesheet_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/timesheet_controller.rb b/app/controllers/timesheet_controller.rb index 0e94679..e8b7078 100644 --- a/app/controllers/timesheet_controller.rb +++ b/app/controllers/timesheet_controller.rb @@ -124,7 +124,7 @@ def allowed_projects elsif Setting.plugin_timesheet_plugin['project_status'] == 'all' Project.timesheet_order_by_name.timesheet_with_membership(User.current) else - Project.timesheet_order_by_name.all(:conditions => Project.visible_by(User.current)) + Project.timesheet_order_by_name.all(:conditions => Project.visible_condition(User.current)) end end