Author: jablko
Date: Fri Oct 2 11:43:22 2009
New Revision: 3641
Log:
Cosmetic change, drop trailing whitespace
Modified:
trunk/apps/qubit/modules/physicalobject/actions/updateAction.class.php
Modified: trunk/apps/qubit/modules/physicalobject/actions/updateAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/actions/updateAction.class.php
Fri Oct 2 11:16:52 2009 (r3640)
+++ trunk/apps/qubit/modules/physicalobject/actions/updateAction.class.php
Fri Oct 2 11:43:22 2009 (r3641)
@@ -27,10 +27,10 @@
*/
class PhysicalObjectUpdateAction extends sfAction
{
-
+
/**
* Main
- *
+ *
* @param sfRequest $request
*/
public function execute($request)
@@ -44,25 +44,25 @@
$physicalObject =
QubitPhysicalObject::getById($this->getRequestParameter('id'));
$this->forward404Unless($physicalObject);
}
-
+
// Update objects
$this->updateContainerAttributes($physicalObject);
-
+
// Redirect to information object edit page
if ($this->hasRequestParameter('next'))
{
// Make the $next parameter into an absolute URL because redirect()
expects
// an absolute URL or an array containing module and action
- // (Pre-pend code copied from sfWebController->genUrl() method)
+ // (Pre-pend code copied from sfWebController->genUrl() method)
$next = 'http'.($request->isSecure() ? 's' :
'').'://'.$request->getHost().$this->getRequestParameter('next');
$this->redirect($next);
}
-
- // Default redirect
+
+ // Default redirect
$this->redirect('physicalobject/edit?id='.$physicalObject->getId());
- }
-
-
+ }
+
+
/**
* Update container attributes
*
@@ -72,7 +72,7 @@
{
$physicalObject->setName($this->getRequestParameter('name'));
$physicalObject->setLocation($this->getRequestParameter('location'));
-
+
// Set typeId to null if option "0" (blank) selected
if ($this->getRequestParameter('typeId') === '')
{
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---