dont fail with advanced find(pandora.user.ui._findState.key == advanced), fixes #1693

This commit is contained in:
j 2013-07-23 08:20:05 +00:00
parent de4177dac6
commit 8466c054f2

View file

@ -118,7 +118,7 @@ pandora.ui.findElement = function() {
? pandora.user.ui._findState.key ? pandora.user.ui._findState.key
: that.value()[pandora.user.ui._list ? 1 : 0], : that.value()[pandora.user.ui._list ? 1 : 0],
findKey = Ox.getObjectById(pandora.site.findKeys, key); findKey = Ox.getObjectById(pandora.site.findKeys, key);
return findKey.autocomplete ? function(value, callback) { return findKey && findKey.autocomplete ? function(value, callback) {
value === '' && Ox.Log('', 'Warning: autocomplete function should never be called with empty value'); value === '' && Ox.Log('', 'Warning: autocomplete function should never be called with empty value');
pandora.api.autocomplete({ pandora.api.autocomplete({
key: key, key: key,