Populate current attributes of item in filter().
This commit is contained in:
parent
3d20f51c56
commit
3cc1fc4182
1 changed files with 2 additions and 3 deletions
|
@ -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 ]
|
||||||
|
|
Loading…
Reference in a new issue