From 248ff61ebeef899876fdfcdc976f7007a0c77ec9 Mon Sep 17 00:00:00 2001 From: alex-dna Date: Wed, 9 Jul 2014 16:32:10 +1200 Subject: [PATCH] Update UserDefinedForm.php Add updateAfterProcess hook --- code/model/UserDefinedForm.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/model/UserDefinedForm.php b/code/model/UserDefinedForm.php index 049db20..251a32a 100755 --- a/code/model/UserDefinedForm.php +++ b/code/model/UserDefinedForm.php @@ -1031,6 +1031,8 @@ JS } } + $submittedForm->extend('updateAfterProcess'); + Session::clear("FormInfo.{$form->FormName()}.errors"); Session::clear("FormInfo.{$form->FormName()}.data");