diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-29 14:22:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-29 14:22:56 +0000 |
commit | 945ec8942a4c43ed41aa4302cbe74ad45f1ff08c (patch) | |
tree | 2e2f45b48ee4277e6e1920d094c337a7b7191738 /app/controllers/trackers_controller.rb | |
parent | 32d4378198b83a10bab53c8e7cee2e4ec8adb818 (diff) | |
download | redmine-945ec8942a4c43ed41aa4302cbe74ad45f1ff08c.tar.gz redmine-945ec8942a4c43ed41aa4302cbe74ad45f1ff08c.zip |
Adds projects association on tracker form (#2578).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2335 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/trackers_controller.rb')
-rw-r--r-- | app/controllers/trackers_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/trackers_controller.rb b/app/controllers/trackers_controller.rb index 8c02f9474..51e70ddf4 100644 --- a/app/controllers/trackers_controller.rb +++ b/app/controllers/trackers_controller.rb @@ -40,8 +40,10 @@ class TrackersController < ApplicationController end flash[:notice] = l(:notice_successful_create) redirect_to :action => 'list' + return end @trackers = Tracker.find :all, :order => 'position' + @projects = Project.find(:all) end def edit @@ -49,7 +51,9 @@ class TrackersController < ApplicationController if request.post? and @tracker.update_attributes(params[:tracker]) flash[:notice] = l(:notice_successful_update) redirect_to :action => 'list' + return end + @projects = Project.find(:all) end def move |