Merge branch 'master' of github.com:web2py/web2py

This commit is contained in:
mdipierro
2016-03-08 16:44:05 -06:00
3 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -2364,7 +2364,7 @@ class SQLFORM(FORM):
if deletable(record):
if ondelete:
ondelete(table, request.args[-1])
record.delete_record()
db(table[table._id.name] == request.args[-1]).delete()
if request.ajax:
# this means javascript is enabled, so we don't need to do
# a redirect