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