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

mark at devel.lifetype.net mark at devel.lifetype.net
Thu Jun 19 13:06:13 EDT 2008


Author: mark
Date: 2008-06-19 13:06:12 -0400 (Thu, 19 Jun 2008)
New Revision: 6596

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminaddresourcealbumaction.class.php
Log:
albumDescription is allowed to be empty.

Modified: plog/branches/lifetype-1.2/class/action/admin/adminaddresourcealbumaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminaddresourcealbumaction.class.php	2008-06-19 16:58:03 UTC (rev 6595)
+++ plog/branches/lifetype-1.2/class/action/admin/adminaddresourcealbumaction.class.php	2008-06-19 17:06:12 UTC (rev 6596)
@@ -31,9 +31,9 @@
         	$this->AdminAction( $actionInfo, $request );
 			
 			// validation stuff
-			$this->registerFieldValidator( "albumName", new StringValidator( false ));
+			$this->registerFieldValidator( "albumName", new StringValidator());
 			$this->registerFieldValidator( "parentId", new IntegerValidator());
-			$this->registerFieldValidator( "albumDescription", new StringValidator( false ));
+			$this->registerFieldValidator( "albumDescription", new StringValidator(), true);
 			$this->setValidationErrorView( new AdminNewAlbumView( $this->_blogInfo ));
 			
 			$this->requirePermission( "add_album" );



More information about the pLog-svn mailing list