]> source.dussan.org Git - redmine.git/commitdiff
Fixed that Enumerations sorting is broken (#26564).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Jul 2017 16:30:32 +0000 (16:30 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Jul 2017 16:30:32 +0000 (16:30 +0000)
Patch by Sergey Gnuskov.

git-svn-id: http://svn.redmine.org/redmine/trunk@16918 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/enumerations_controller.rb

index 985e988bc856526eae31c2200bab7577550eb2d0..e5e3cc3defb8871dba0dd826b5cd6697f4e420a5 100644 (file)
@@ -105,6 +105,6 @@ class EnumerationsController < ApplicationController
 
   def enumeration_params
     # can't require enumeration on #new action
-    params.permit(:enumeration => [:name, :active, :is_default])[:enumeration]
+    params.permit(:enumeration => [:name, :active, :is_default, :position])[:enumeration]
   end
 end