{"action":"closed","issue":{"url":"https://api.github.com/repos/web2py/web2py/issues/1187","repository_url":"https://api.github.com/repos/web2py/web2py","labels_url":"https://api.github.com/repos/web2py/web2py/issues/1187/labels{/name}","comments_url":"https://api.github.com/repos/web2py/web2py/issues/1187/comments","events_url":"https://api.github.com/repos/web2py/web2py/issues/1187/events","html_url":"https://github.com/web2py/web2py/issues/1187","id":134253073,"number":1187,"title":"syntax error in autocomplete","user":{"login":"RekGRpth","id":3190488,"avatar_url":"https://avatars.githubusercontent.com/u/3190488?v=3","gravatar_id":"","url":"https://api.github.com/users/RekGRpth","html_url":"https://github.com/RekGRpth","followers_url":"https://api.github.com/users/RekGRpth/followers","following_url":"https://api.github.com/users/RekGRpth/following{/other_user}","gists_url":"https://api.github.com/users/RekGRpth/gists{/gist_id}","starred_url":"https://api.github.com/users/RekGRpth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RekGRpth/subscriptions","organizations_url":"https://api.github.com/users/RekGRpth/orgs","repos_url":"https://api.github.com/users/RekGRpth/repos","events_url":"https://api.github.com/users/RekGRpth/events{/privacy}","received_events_url":"https://api.github.com/users/RekGRpth/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-17T11:18:47Z","updated_at":"2016-03-14T17:45:10Z","closed_at":"2016-03-14T17:45:10Z","body":"```diff\r\ndiff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py\r\nindex c7d4530..0285c1a 100644\r\n--- a/gluon/sqlhtml.py\r\n+++ b/gluon/sqlhtml.py\r\n@@ -677,7 +677,7 @@ class AutocompleteWidget(object):\r\n     def callback(self):\r\n         if self.keyword in self.request.vars:\r\n             field = self.fields[0]\r\n-            if type(field) is FieldVirtual:\r\n+            if type(field) is Field.Virtual:\r\n                 records = []\r\n                 table_rows = self.db(self.db[field.tablename]).select(orderby=self.orderby)\r\n                 count = 0\r\n```"}}