[pLog-svn] r6550 - plog/branches/lifetype-1.2/class/action/admin

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat Jun 14 15:26:24 EDT 2008


Author: jondaley
Date: 2008-06-14 15:26:24 -0400 (Sat, 14 Jun 2008)
New Revision: 6550

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminpostmanagementcommonaction.class.php
Log:
Revision 6544 exposed a previous bug where the IntegerValidator for postId wasn't actually being used, since registerField() was overwriting it.  Since adminpostmanagementcommonaction is used by addPost (and shortly to be xmlsavedraft) the postId is no longer required, but should be validated when it is used

Modified: plog/branches/lifetype-1.2/class/action/admin/adminpostmanagementcommonaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminpostmanagementcommonaction.class.php	2008-06-14 19:24:43 UTC (rev 6549)
+++ plog/branches/lifetype-1.2/class/action/admin/adminpostmanagementcommonaction.class.php	2008-06-14 19:26:24 UTC (rev 6550)
@@ -55,7 +55,7 @@
         	$this->registerFieldValidator( "postText", new StringValidator( true ) );
         	$this->registerFieldValidator( "postTopic", new StringValidator() );
         	$this->registerFieldValidator( "postCategories", new ArrayValidator( new IntegerValidator() ) );
-        	$this->registerFieldValidator( "postId", new IntegerValidator() );
+        	$this->registerFieldValidator( "postId", new IntegerValidator(), true );
         	$this->registerFieldValidator( "globalArticleCategoryId", new IntegerValidator(), true );
         	$this->registerFieldValidator( "postDateTime", new DateTimeValidator( '%j/%m/%Y %G:%i' ) );
         	



More information about the pLog-svn mailing list