fixed incorrect template validator in wiki, thanks Alan

This commit is contained in:
mdipierro
2013-01-20 21:36:02 -06:00
parent 35e7f4265b
commit 1d15871a69
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -5089,7 +5089,8 @@ class Wiki(object):
if self.templates:
fields.append(
Field("from_template", "reference wiki_page",
requires=IS_EMPTY_OR(IS_IN_DB(db(self.templates),
requires=IS_EMPTY_OR(IS_IN_DB(db(self.templates),
db.wiki_page._id,
'%(slug)s')),
comment=current.T(
"Choose Template or empty for new Page")))