http://code.google.com/p/web2py/issues/detail?id=553, thanks Peter
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 1.99.3 (2011-12-04 15:40:01) dev
|
Version 1.99.3 (2011-12-04 15:48:02) dev
|
||||||
|
|||||||
+4
-3
@@ -1904,9 +1904,10 @@ class FORM(DIV):
|
|||||||
elif callable(onsuccess):
|
elif callable(onsuccess):
|
||||||
onsuccess(self)
|
onsuccess(self)
|
||||||
if next:
|
if next:
|
||||||
if self.vars.id:
|
if self.vars:
|
||||||
next = next.replace('[id]',str(self.vars.id))
|
for key,value in self.vars.items():
|
||||||
next = next % self.vars
|
next = next.replace('[%s]' % key,
|
||||||
|
urllib.quote(str(value)))
|
||||||
if not next.startswith('/'):
|
if not next.startswith('/'):
|
||||||
next = URL(next)
|
next = URL(next)
|
||||||
redirect(next)
|
redirect(next)
|
||||||
|
|||||||
Reference in New Issue
Block a user