on_failure in grid, fixed issue 1232, thanks dev.ldhughes
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.3.2 (2012-12-19 11:23:59) dev
|
Version 2.3.2 (2012-12-19 11:37:10) dev
|
||||||
|
|||||||
@@ -1682,6 +1682,7 @@ class SQLFORM(FORM):
|
|||||||
maxtextlengths={},
|
maxtextlengths={},
|
||||||
maxtextlength=20,
|
maxtextlength=20,
|
||||||
onvalidation=None,
|
onvalidation=None,
|
||||||
|
onfailure=None,
|
||||||
oncreate=None,
|
oncreate=None,
|
||||||
onupdate=None,
|
onupdate=None,
|
||||||
ondelete=None,
|
ondelete=None,
|
||||||
@@ -1878,6 +1879,7 @@ class SQLFORM(FORM):
|
|||||||
create_form.process(formname=formname,
|
create_form.process(formname=formname,
|
||||||
next=referrer,
|
next=referrer,
|
||||||
onvalidation=onvalidation,
|
onvalidation=onvalidation,
|
||||||
|
onfailure=onfailure,
|
||||||
onsuccess=oncreate)
|
onsuccess=oncreate)
|
||||||
res = DIV(buttons(), create_form, formfooter, _class=_class)
|
res = DIV(buttons(), create_form, formfooter, _class=_class)
|
||||||
res.create_form = create_form
|
res.create_form = create_form
|
||||||
@@ -1916,6 +1918,7 @@ class SQLFORM(FORM):
|
|||||||
update_form.process(
|
update_form.process(
|
||||||
formname=formname,
|
formname=formname,
|
||||||
onvalidation=onvalidation,
|
onvalidation=onvalidation,
|
||||||
|
onfailure=onfailure,
|
||||||
onsuccess=onupdate,
|
onsuccess=onupdate,
|
||||||
next=referrer)
|
next=referrer)
|
||||||
res = DIV(buttons(view=details, record=record),
|
res = DIV(buttons(view=details, record=record),
|
||||||
|
|||||||
Reference in New Issue
Block a user