Fixed bug: Options of searchable_-/multi-/select field get sorted even if disabled via configuration.
This commit is contained in:
parent
a3df7a5aad
commit
074e90d471
1 changed files with 3 additions and 0 deletions
|
@ -2093,6 +2093,9 @@ class App.ControllerForm extends App.Controller
|
||||||
# sort attribute.options
|
# sort attribute.options
|
||||||
_sortOptions: (attribute) ->
|
_sortOptions: (attribute) ->
|
||||||
|
|
||||||
|
# skip sorting if it is disabled by config
|
||||||
|
return if attribute.sortBy == null
|
||||||
|
|
||||||
return if !attribute.options
|
return if !attribute.options
|
||||||
|
|
||||||
if _.isArray( attribute.options )
|
if _.isArray( attribute.options )
|
||||||
|
|
Loading…
Reference in a new issue