Open joemcl opened 7 years ago
Being pedantic here. it is a Notice, not an Error.
Notice: Undefined index: context in optimizedautocomplete_civicrm_contactListQuery() (line 16 of xxx/sites/default/civicrm/extensions/org.eff.optimizedautocomplete/optimizedautocomplete.php).
Thanks Pete, just updated to Notice from Errors.
So the issue is pretty simple - if $ids
is empty at line 89 of optimizedautocomplete.php, it's going to generate invalid SQL.
SELECT id, sort_name FROM civicrm_contact WHERE id IN ( ) ORDER BY sort_name
See fuzionnz/org.eff.optimizedautocomplete@fce6bc95a2 - happy to submit a PR which doesn't contain the other work by @nganivet @edzelopez @joemurray etc if you're actively maintaining this extension still and want a "clean" PR submitted.
Apparently this extension is basically in core CiviCRM now, and shouldn't be used. Yay! I'd close this if I could.
Thanks @xurizaemon, we are however not using this extension anymore. Glad to know it's part of core now!
We've been running this extension successfully for about 4 years but we recently discovered that it causes excessive notices with Civi 4.6.25, so we have just disabled it. Seems to be eg a set of 3 warnings regarding lines 14, 15 and 16 respectively each time we used Quick Search.