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

mark at devel.lifetype.net mark at devel.lifetype.net
Sat Jun 21 09:59:12 EDT 2008


Author: mark
Date: 2008-06-21 09:59:12 -0400 (Sat, 21 Jun 2008)
New Revision: 6614

Modified:
   plog/branches/lifetype-1.2/class/action/admin/chooser/adminresourcelistaction.class.php
   plog/branches/lifetype-1.2/class/action/admin/chooser/adminuserpictureselectaction.class.php
Log:
Forgot assign albumId to $this->_albumId

Modified: plog/branches/lifetype-1.2/class/action/admin/chooser/adminresourcelistaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/chooser/adminresourcelistaction.class.php	2008-06-21 13:10:01 UTC (rev 6613)
+++ plog/branches/lifetype-1.2/class/action/admin/chooser/adminresourcelistaction.class.php	2008-06-21 13:59:12 UTC (rev 6614)
@@ -25,7 +25,7 @@
         	// and the view we should show in case there is a validation error
 			$view = new AdminSimpleResourcesListView( $this->_blogInfo );
 			$this->setValidationErrorView( $view );
-            	
+
             $this->requirePermission( "view_resources" );		
         }
 
@@ -34,6 +34,11 @@
          */
         function perform()
         {
+            // fetch the albumId
+            $this->_albumId = $this->_request->getValue( "albumId" );
+            if( $this->_albumId == "" )
+            	$this->_albumId = 0;
+
 			$this->_view = new AdminSimpleResourcesListView( $this->_blogInfo, Array( "albumId" => $this->_albumId));
             $this->setCommonData();
 

Modified: plog/branches/lifetype-1.2/class/action/admin/chooser/adminuserpictureselectaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/chooser/adminuserpictureselectaction.class.php	2008-06-21 13:10:01 UTC (rev 6613)
+++ plog/branches/lifetype-1.2/class/action/admin/chooser/adminuserpictureselectaction.class.php	2008-06-21 13:59:12 UTC (rev 6614)
@@ -34,6 +34,10 @@
          */
         function perform()
         {
+            // fetch the albumId
+            $this->_albumId = $this->_request->getValue( "albumId" );
+            if( $this->_albumId == "" )
+            	$this->_albumId = 0;
 			
             $this->_view = new AdminUserPictureSelectView( $this->_blogInfo, Array( "albumId" => $this->_albumId ));
             $this->setCommonData();



More information about the pLog-svn mailing list