[pLog-svn] r3353 - plog/trunk/class/action/admin

mark at devel.lifetype.net mark at devel.lifetype.net
Sat May 6 18:53:28 GMT 2006


Author: mark
Date: 2006-05-06 18:53:28 +0000 (Sat, 06 May 2006)
New Revision: 3353

Modified:
   plog/trunk/class/action/admin/adminupdatepostaction.class.php
Log:
It seems we forgot pass the globalArticleCategoryId to the view when validate error.

Modified: plog/trunk/class/action/admin/adminupdatepostaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminupdatepostaction.class.php	2006-05-06 18:49:52 UTC (rev 3352)
+++ plog/trunk/class/action/admin/adminupdatepostaction.class.php	2006-05-06 18:53:28 UTC (rev 3353)
@@ -38,6 +38,7 @@
         	$this->registerFieldValidator( "postTopic", new StringValidator());
         	$this->registerFieldValidator( "postCategories", new ArrayValidator());
         	$this->registerFieldValidator( "postId", new IntegerValidator());
+        	$this->registerFieldValidator( "globalArticleCategoryId", new IntegerValidator(), true );
         	$view = new AdminEditPostView( $this->_blogInfo );
 
             $dateTimeParts = explode(" ", $this->_request->getValue("postDateTime"));
@@ -64,7 +65,7 @@
         	$this->registerField( "customField" );
         	$this->registerField( "postDateTime" );   
         	$this->registerField( "trackbackUrls" );
-        	$this->registerField( "inSummary" );  	
+        	$this->registerField( "inSummary" );
         }
 
         /**



More information about the pLog-svn mailing list