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

oscar at devel.lifetype.net oscar at devel.lifetype.net
Mon Mar 5 14:34:00 EST 2007


Author: oscar
Date: 2007-03-05 14:34:00 -0500 (Mon, 05 Mar 2007)
New Revision: 4996

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminaddbloguseraction.class.php
Log:
Fixed issue http://bugs.lifetype.net/view.php?id=1207, permissions disappearing when there was an error in the form data.

Modified: plog/branches/lifetype-1.2/class/action/admin/adminaddbloguseraction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminaddbloguseraction.class.php	2007-03-05 19:21:40 UTC (rev 4995)
+++ plog/branches/lifetype-1.2/class/action/admin/adminaddbloguseraction.class.php	2007-03-05 19:34:00 UTC (rev 4996)
@@ -72,7 +72,7 @@
             $users = new Users();
             $userInfo = $users->getUserInfoFromUsername( $this->_newUsername );
             if( !$userInfo ) {
-            	$this->_view = new AdminTemplatedView( $this->_blogInfo, "addbloguser" );
+            	$this->_view = new AdminNewBlogUserView( $this->_blogInfo );
                 $this->_view->setErrorMessage( $this->_locale->pr("error_invalid_user"), $this->_newUsername );
 				$this->_form->setFieldValidationStatus( "newBlogUserName", false );
                 $this->setCommonData( true );
@@ -93,7 +93,7 @@
 			$this->notifyEvent( EVENT_PRE_USER_UPDATE, Array( "user" => &$userInfo ));
             if( !$res ) {
             	// there was an error adding the user to the blog
-            	$this->_view = new AdminTemplatedView( $this->_blogInfo, "addbloguser" );
+            	$this->_view = new AdminNewBlogUserView( $this->_blogInfo );
                 $this->_view->setErrorMessage( $this->_locale->pr("error_adding_user", $userInfo->getUsername()));
                 $this->setCommonData();
 



More information about the pLog-svn mailing list