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

Reto Hugi plog at hugi.to
Sun Jun 8 06:32:14 EDT 2008


On 06/08/2008 04:37 AM, mark at devel.lifetype.net wrote:
> Author: mark Date: 2008-06-07 22:37:10 -0400 (Sat, 07 Jun 2008) New
> Revision: 6508
> 
> Modified: 
> plog/branches/lifetype-1.2/class/action/admin/adminupdateusersettingsaction.class.php
>  Log: Before fix the validator in actions:
> 
> 1. We need to compare the input variables with templates input filed.
> For example, we don't need to validate properties here, because it
> never exit in templates
> 
> 2. We need to make sure the input is optional or not. If the input is
> optional, then we should set onlyIfAvailable = true in
> registerFiledValidator, or it will break our current user experience.
> Take userSettingsPassword for example, if we don's set
> onlyIfAvailable to true, then user have to input password when he
> just only want to update the user full name.
> 

right. just in case: Our Wiki has a good documentation on validators:
http://wiki.lifetype.net/index.php/Forms_and_data_validation
(I didn't know about the chainedValidator for example...)


More information about the pLog-svn mailing list