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

mark at devel.lifetype.net mark at devel.lifetype.net
Thu Jun 19 01:59:42 EDT 2008


Author: mark
Date: 2008-06-19 01:59:42 -0400 (Thu, 19 Jun 2008)
New Revision: 6579

Modified:
   plog/branches/lifetype-1.2/class/action/admin/admineditlinkcategoryaction.class.php
Log:
We don't need to registerFiled to carry category name here.

Modified: plog/branches/lifetype-1.2/class/action/admin/admineditlinkcategoryaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/admineditlinkcategoryaction.class.php	2008-06-19 05:55:51 UTC (rev 6578)
+++ plog/branches/lifetype-1.2/class/action/admin/admineditlinkcategoryaction.class.php	2008-06-19 05:59:42 UTC (rev 6579)
@@ -26,9 +26,8 @@
         	$this->AdminAction( $actionInfo, $request );
 			
 			// data validation
-			$this->registerFieldValidator( "categoryId", new IntegerValidator());
-                // TODO: this isn't used?  Or if it is, it should be validated
-			$this->_form->registerField( "categoryName" );
+			$this->registerFieldValidator( "categoryId", new IntegerValidator() );
+
 			$view = new AdminLinkCategoriesListView( $this->_blogInfo );
 			$view->setErrorMessage( $this->_locale->tr("error_incorrect_link_category_id"));
 			$this->setValidationErrorView( $view );



More information about the pLog-svn mailing list