diff app/controllers/enumerations_controller.rb @ 441:cbce1fd3b1b7 redmine-1.2

Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author Chris Cannam
date Mon, 06 Jun 2011 14:24:13 +0100
parents 513646585e45
children cbb26bc654de
line wrap: on
line diff
--- a/app/controllers/enumerations_controller.rb	Thu Mar 03 11:42:28 2011 +0000
+++ b/app/controllers/enumerations_controller.rb	Mon Jun 06 14:24:13 2011 +0100
@@ -75,10 +75,12 @@
       # No associated objects
       @enumeration.destroy
       redirect_to :action => 'index'
+      return
     elsif params[:reassign_to_id]
       if reassign_to = @enumeration.class.find_by_id(params[:reassign_to_id])
         @enumeration.destroy(reassign_to)
         redirect_to :action => 'index'
+        return
       end
     end
     @enumerations = @enumeration.class.find(:all) - [@enumeration]