fixed #1187 Field(.)Virtual typo, thanks RekGRpth
This commit is contained in:
+2
-2
@@ -677,7 +677,7 @@ class AutocompleteWidget(object):
|
||||
def callback(self):
|
||||
if self.keyword in self.request.vars:
|
||||
field = self.fields[0]
|
||||
if type(field) is FieldVirtual:
|
||||
if type(field) is Field.Virtual:
|
||||
records = []
|
||||
table_rows = self.db(self.db[field.tablename]).select(orderby=self.orderby)
|
||||
count = 0
|
||||
@@ -741,7 +741,7 @@ class AutocompleteWidget(object):
|
||||
del attr['requires']
|
||||
attr['_name'] = key2
|
||||
value = attr['value']
|
||||
if type(self.fields[0]) is FieldVirtual:
|
||||
if type(self.fields[0]) is Field.Virtual:
|
||||
record = None
|
||||
table_rows = self.db(self.db[self.fields[0].tablename]).select(orderby=self.orderby)
|
||||
for row in table_rows:
|
||||
|
||||
Reference in New Issue
Block a user