Populate current attributes of item in filter().

This commit is contained in:
Martin Edenhofer 2015-05-05 12:56:22 +02:00
parent 3d20f51c56
commit 3cc1fc4182

View file

@ -2142,7 +2142,6 @@ class App.ControllerForm extends App.Controller
return if !App[attribute.relation] return if !App[attribute.relation]
attribute.options = [] attribute.options = []
list = [] list = []
if attribute.filter if attribute.filter
@ -2154,7 +2153,7 @@ class App.ControllerForm extends App.Controller
all = App[ attribute.relation ].search( sortBy: attribute.sortBy ) all = App[ attribute.relation ].search( sortBy: attribute.sortBy )
list = attribute.filter( all, 'collection' ) list = attribute.filter( all, 'collection', @params )
# data based filter # data based filter
else if attribute.filter[ attribute.name ] else if attribute.filter[ attribute.name ]