fixed issue 604

This commit is contained in:
Massimo Di Pierro
2012-01-12 12:28:03 -06:00
parent 6060628f65
commit 96fa5364e6
3 changed files with 183 additions and 243 deletions
+1 -1
View File
@@ -1592,7 +1592,7 @@ class SQLFORM(FORM):
check_authorization()
table = db[request.args[-2]]
if ondelete:
ondelete(table,request.args[-1],ret)
ondelete(table,request.args[-1])
ret = db(table.id==request.args[-1]).delete()
return ret
elif csv and len(request.args)>0 and request.args[-1]=='csv':