]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/helpers/SyjPostData.php
update copyright headers
[syj.git] / application / controllers / helpers / SyjPostData.php
index 3f18222545f7e2e0cfdd710bf40310ea9b8fd52f..5105f846be01d9237ef988539a82eb0fa6a6d1ed 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/*  This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
     and is published under the AGPL license. */
 
 class Syj_Controller_Action_Helper_SyjPostData extends Zend_Controller_Action_Helper_Abstract
@@ -17,6 +17,11 @@ class Syj_Controller_Action_Helper_SyjPostData extends Zend_Controller_Action_He
             throw new Syj_Exception_Request();
         }
         $data = $this->getRequest()->getPost();
+
+        if ($form instanceof Syj_Processor_Interface) {
+            $form->process($data);
+        }
+
         if (!$form->isValid($data)) {
             throw new Syj_Exception_Request();
         }