[pLog-svn] r6517 - plog/branches/lifetype-1.2/class/action/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Mon Jun 9 01:07:46 EDT 2008
Author: mark
Date: 2008-06-09 01:07:46 -0400 (Mon, 09 Jun 2008)
New Revision: 6517
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminupdatepermissionaction.class.php
Log:
corePermission and adminOnlyPermission are optional.
Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdatepermissionaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdatepermissionaction.class.php 2008-06-09 05:04:07 UTC (rev 6516)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdatepermissionaction.class.php 2008-06-09 05:07:46 UTC (rev 6517)
@@ -23,8 +23,8 @@
$this->registerFieldValidator( "permissionName", new StringValidator());
$this->registerFieldValidator( "permissionDescription", new StringValidator());
$this->registerFieldValidator( "permissionId", new IntegerValidator());
- $this->registerFieldValidator( "corePermission", new IntegerValidator() );
- $this->registerFieldValidator( "adminOnlyPermission", new IntegerValidator() );
+ $this->registerFieldValidator( "corePermission", new IntegerValidator(), true );
+ $this->registerFieldValidator( "adminOnlyPermission", new IntegerValidator(), true );
// and the view we should show in case there is a validation error
$errorView = new AdminTemplatedView( $this->_blogInfo, "editpermission" );
$errorView->setErrorMessage( $this->_locale->tr("error_updating_permission" ));
More information about the pLog-svn
mailing list