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

Jon Daley plogworld at jon.limedaley.com
Thu Jun 19 07:53:12 EDT 2008


 	I wondered about these too.  Do you know why they were included 
originally?

On Thu, 19 Jun 2008, mark at devel.lifetype.net wrote:

> Author: mark
> Date: 2008-06-19 02:10:26 -0400 (Thu, 19 Jun 2008)
> New Revision: 6582
>
> Modified:
>   plog/branches/lifetype-1.2/class/action/admin/admineditlinkaction.class.php
> Log:
> We don't need the use registerField here, the filtered input value will carry by _form itself.
>
> Modified: plog/branches/lifetype-1.2/class/action/admin/admineditlinkaction.class.php
> ===================================================================
> --- plog/branches/lifetype-1.2/class/action/admin/admineditlinkaction.class.php	2008-06-19 06:09:17 UTC (rev 6581)
> +++ plog/branches/lifetype-1.2/class/action/admin/admineditlinkaction.class.php	2008-06-19 06:10:26 UTC (rev 6582)
> @@ -27,12 +27,7 @@
>
> 			// data validation stuff
> 			$this->registerFieldValidator( "linkId", new IntegerValidator());
> -			// we need to register the other fields or else the form validation will complain
> -            // TODO: validate or don't use
> -			$this->_form->registerField( "linkDescription" );
> -			$this->_form->registerField( "linkName" );
> -			$this->_form->registerField( "linkRssFeed" );
> -			$this->_form->registerField( "linkUrl" );
> +
> 			$view = new AdminLinksListView( $this->_blogInfo );
> 			$view->setErrorMessage( $this->_locale->tr("error_fetching_link" ));
> 			$this->setValidationErrorView( $view );
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>

-- 
Jon Daley
http://jon.limedaley.com
~~
I was unhappy...but that's over, done, water under the dam.
-- Cal Ripkin Sr.


More information about the pLog-svn mailing list