fix find in icon editor for texts
This commit is contained in:
parent
40d6b927e6
commit
733c7c5c5f
1 changed files with 7 additions and 2 deletions
|
@ -568,8 +568,13 @@ pandora.ui.listIconPanel = function(listData) {
|
||||||
items: function(data, callback) {
|
items: function(data, callback) {
|
||||||
pandora.api.find(Ox.extend(data, {
|
pandora.api.find(Ox.extend(data, {
|
||||||
query: {
|
query: {
|
||||||
conditions: [{key: 'list', value: listData.id, operator: '=='}].concat(
|
conditions: (
|
||||||
value !== '' ? [{key: key, value: value, operator: '='}] : []
|
ui.section == 'items'
|
||||||
|
? [{key: 'list', value: listData.id, operator: '=='}]
|
||||||
|
: []).concat(
|
||||||
|
value !== ''
|
||||||
|
? [{key: key, value: value, operator: '='}]
|
||||||
|
: []
|
||||||
),
|
),
|
||||||
operator: '&'
|
operator: '&'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue