summaryrefslogtreecommitdiffstats
path: root/app/controllers/versions_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-01 13:13:32 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-01 13:13:32 +0000
commitdb2ecd30103b9b296b1eabb6a018c528c8a1ac8e (patch)
treea6d9c1606b34a430760836bcf40017b0feed79c2 /app/controllers/versions_controller.rb
parentba56b3f76333408e3a4692d5e3214ec27db2f4fc (diff)
downloadredmine-db2ecd30103b9b296b1eabb6a018c528c8a1ac8e.tar.gz
redmine-db2ecd30103b9b296b1eabb6a018c528c8a1ac8e.zip
Fixed: "Template is missing" error when validation fails on version edit (#6766).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4354 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/versions_controller.rb')
-rw-r--r--app/controllers/versions_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb
index 48612c7b8..03af71b99 100644
--- a/app/controllers/versions_controller.rb
+++ b/app/controllers/versions_controller.rb
@@ -109,6 +109,10 @@ class VersionsController < ApplicationController
if @version.update_attributes(attributes)
flash[:notice] = l(:notice_successful_update)
redirect_to :controller => 'projects', :action => 'settings', :tab => 'versions', :id => @project
+ else
+ respond_to do |format|
+ format.html { render :action => 'edit' }
+ end
end
end
end