[pLog-svn] r6561 - plog/branches/lifetype-1.2/class/action/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Wed Jun 18 00:15:47 EDT 2008
Author: mark
Date: 2008-06-18 00:15:46 -0400 (Wed, 18 Jun 2008)
New Revision: 6561
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminupdatepostaction.class.php
Log:
postId is the must have field when we update the post.
Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdatepostaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdatepostaction.class.php 2008-06-17 05:00:51 UTC (rev 6560)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdatepostaction.class.php 2008-06-18 04:15:46 UTC (rev 6561)
@@ -31,6 +31,9 @@
{
$this->AdminPostManagementCommonAction( $actionInfo, $request );
+ // postId is the must have field when we update the post.
+ $this->registerFieldValidator( "postId", new IntegerValidator() );
+
$view = new AdminEditPostView( $this->_blogInfo );
$view->setErrorMessage( $this->_locale->tr("error_updating_post"));
$this->setValidationErrorView( $view );
More information about the pLog-svn
mailing list