[pLog-svn] r6583 - plog/branches/lifetype-1.2/class/action/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Thu Jun 19 02:20:16 EDT 2008
Author: mark
Date: 2008-06-19 02:20:15 -0400 (Thu, 19 Jun 2008)
New Revision: 6583
Modified:
plog/branches/lifetype-1.2/class/action/admin/admineditglobalarticlecategoryaction.class.php
Log:
We don't need categoryName and categoryDescription here, and we also don't need to include those validators that never used.
Modified: plog/branches/lifetype-1.2/class/action/admin/admineditglobalarticlecategoryaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/admineditglobalarticlecategoryaction.class.php 2008-06-19 06:10:26 UTC (rev 6582)
+++ plog/branches/lifetype-1.2/class/action/admin/admineditglobalarticlecategoryaction.class.php 2008-06-19 06:20:15 UTC (rev 6583)
@@ -9,9 +9,7 @@
lt_include( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" );
lt_include( PLOG_CLASS_PATH."class/view/admin/adminglobalarticlecategorieslistview.class.php" );
lt_include( PLOG_CLASS_PATH."class/dao/globalarticlecategories.class.php" );
- lt_include( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
- lt_include( PLOG_CLASS_PATH."class/data/validator/emptyvalidator.class.php" );
/**
* \ingroup Action
@@ -34,9 +32,7 @@
// stuff for the data validation
$this->registerFieldValidator( "categoryId", new IntegerValidator());
- // TODO: validate or don't use
- $this->_form->registerField( "categoryName" );
- $this->_form->registerField( "categoryDescription" );
+
$errorView = new AdminGlobalArticleCategoriesListView( $this->_blogInfo );
$errorView->setErrorMessage( $this->_locale->tr("error_incorrect_category_id"));
$this->setValidationErrorView( $errorView );
More information about the pLog-svn
mailing list