[pLog-svn] r6061 - plog/branches/lifetype-1.2/class/action
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Mon Nov 19 23:06:55 EST 2007
Author: jondaley
Date: 2007-11-19 23:06:54 -0500 (Mon, 19 Nov 2007)
New Revision: 6061
Modified:
plog/branches/lifetype-1.2/class/action/action.class.php
Log:
removed duplicated code
Modified: plog/branches/lifetype-1.2/class/action/action.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/action.class.php 2007-11-19 14:25:53 UTC (rev 6060)
+++ plog/branches/lifetype-1.2/class/action/action.class.php 2007-11-20 04:06:54 UTC (rev 6061)
@@ -167,18 +167,12 @@
*/
function validationErrorProcessing()
{
- // if there was a validaton error, then inform the view
+ // if there was a validation error, then inform the view
$this->_view = $this->_validationErrorView;
$this->_view->setError( true );
- // and export all the data to the view so that it can be reused in the error view
- $fieldValues = $this->_form->getFieldValues();
- foreach( $fieldValues as $fieldName => $fieldValue ) {
- $this->_view->setValue( "$fieldName", $fieldValue );
- }
-
$this->_form->setFormIsValid( false );
- $this->setCommonData();
+ $this->setCommonData( true );
return true;
}
More information about the pLog-svn
mailing list