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

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Mon Jun 9 14:11:06 EDT 2008


Author: jondaley
Date: 2008-06-09 14:11:06 -0400 (Mon, 09 Jun 2008)
New Revision: 6540

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminupdateresourceaction.class.php
Log:
ah, a third error.  this code has never been tested before today

Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdateresourceaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdateresourceaction.class.php	2008-06-09 17:55:49 UTC (rev 6539)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdateresourceaction.class.php	2008-06-09 18:11:06 UTC (rev 6540)
@@ -45,12 +45,13 @@
             if(parent::validate())
                 return true;
             
-                // If it didn't validate, customize the view returned
+                // If it didn't validate, customize the view returned based on inputs
             if($this->_form->isFieldValid("resourceId")){
                 $resources = new GalleryResources();
                 $resource = $resources->getResource( $this->_request->getValue("resourceId"), $this->_blogInfo->getId());
                 if( !$resource ) {	
-                    $this->setValidationErrorView( new AdminResourcesListView( $this->_blogInfo ));
+                    $this->_view = new AdminResourcesListView( $this->_blogInfo );
+                    $this->_view->setErrorMessage( $this->_locale->tr("error_updating_resource" ));
                     $this->setCommonData();
                     return false;
                 }



More information about the pLog-svn mailing list