fix icon find

This commit is contained in:
j 2017-02-20 16:54:03 +01:00
parent 65c182f410
commit 2a1b4ece6b

View file

@ -619,12 +619,14 @@ pandora.ui.listIconPanel = function(listData) {
pandora.api.find(Ox.extend(data, { pandora.api.find(Ox.extend(data, {
query: { query: {
conditions: ( conditions: (
Ox.contains(pandora.site.listSections, ui.section) ui.section == 'items'
? [{key: 'list', value: listData.id, operator: '=='}] ? [{key: 'list', value: listData.id, operator: '=='}]
: []).concat( : []).concat(
value !== '' value !== ''
? [{key: key, value: value, operator: '='}] ? [{key: key, value: value, operator: '='}]
: [] : []
).concat(
[{key: 'duration', value: '00:00:00', operator: '>'}]
), ),
operator: '&' operator: '&'
} }