Fixed bug: Options of searchable_-/multi-/select field get sorted even if disabled via configuration.

This commit is contained in:
Thorsten Eckel 2015-07-31 11:03:56 +02:00
parent a3df7a5aad
commit 074e90d471

View file

@ -2093,6 +2093,9 @@ class App.ControllerForm extends App.Controller
# sort attribute.options
_sortOptions: (attribute) ->
# skip sorting if it is disabled by config
return if attribute.sortBy == null
return if !attribute.options
if _.isArray( attribute.options )