[pLog-svn] r1679 - plog/branches/plog-1.0.1/class/action

oscar at devel.plogworld.net oscar at devel.plogworld.net
Fri Apr 1 19:04:11 GMT 2005


Author: oscar
Date: 2005-04-01 19:04:10 +0000 (Fri, 01 Apr 2005)
New Revision: 1679

Modified:
   plog/branches/plog-1.0.1/class/action/blogaction.class.php
Log:
fixed issue 386 (http://bugs.plogworld.net/view.php?id=386), only a slight change to make BlogAction::setCommonData() follow the prototype of Action::setCommonData()


Modified: plog/branches/plog-1.0.1/class/action/blogaction.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/action/blogaction.class.php	2005-04-01 18:55:41 UTC (rev 1678)
+++ plog/branches/plog-1.0.1/class/action/blogaction.class.php	2005-04-01 19:04:10 UTC (rev 1679)
@@ -113,11 +113,19 @@
 
         /**
          * Sets some common information (dirty dirty...)
+		 * @param copyFormValues Whether the values from fields that were registered via
+		 * Action::registerFieldValidator() and Action::registerField() should be passed back to the view
+		 * as variables or not. It defaults to 'false' but this parameter is useful in those cases
+		 * when we would like to force an error to happen (not a validation error) and still keep the
+		 * form values.
+         * @see Action::setCommonData()
          */
-        function setCommonData()
+        function setCommonData( $copyFormValues = false )
         {
             $this->_view->setValue( "Year", $this->_session->getValue( 'Year'));
             $this->_view->setValue( "Month", $this->_session->getValue( 'Month' ));
+            
+            parent::setCommonData( $copyFormValues );
         }
 
         /**




More information about the pLog-svn mailing list