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
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ pandora.ui.findElement = function() {
? pandora.user.ui._findState.key
: that.value()[pandora.user.ui._list ? 1 : 0],
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');
pandora.api.autocomplete({
key: key,