summaryrefslogtreecommitdiffstats
path: root/app/controllers/issues_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-16 11:35:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-16 11:35:18 +0000
commit7799788b3de62a6af32c9d573904a929992d7ab0 (patch)
treee7ee0f18db9275d0d546b7c3709bd718eff92195 /app/controllers/issues_controller.rb
parent1cf09a2d31bf08cfa8c59da6fb40a6028819c15c (diff)
downloadredmine-7799788b3de62a6af32c9d573904a929992d7ab0.tar.gz
redmine-7799788b3de62a6af32c9d573904a929992d7ab0.zip
Fixed that updating the issue form was broken by r4011 when user is not allowed to add issues (#13188).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11405 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r--app/controllers/issues_controller.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index b0b632f19..11469a20b 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -21,11 +21,11 @@ class IssuesController < ApplicationController
before_filter :find_issue, :only => [:show, :edit, :update]
before_filter :find_issues, :only => [:bulk_edit, :bulk_update, :destroy]
- before_filter :find_project, :only => [:new, :create]
+ before_filter :find_project, :only => [:new, :create, :update_form]
before_filter :authorize, :except => [:index]
before_filter :find_optional_project, :only => [:index]
before_filter :check_for_default_issue_status, :only => [:new, :create]
- before_filter :build_new_issue_from_params, :only => [:new, :create]
+ before_filter :build_new_issue_from_params, :only => [:new, :create, :update_form]
accept_rss_auth :index, :show
accept_api_auth :index, :show, :create, :update, :destroy
@@ -132,7 +132,6 @@ class IssuesController < ApplicationController
def new
respond_to do |format|
format.html { render :action => 'new', :layout => !request.xhr? }
- format.js { render :partial => 'update_form' }
end
end
@@ -202,6 +201,11 @@ class IssuesController < ApplicationController
end
end
+ # Updates the issue form when changing the project, status or tracker
+ # on issue creation/update
+ def update_form
+ end
+
# Bulk edit/copy a set of issues
def bulk_edit
@issues.sort!