Author: jablko
Date: Wed Sep  2 18:08:04 2009
New Revision: 3156

Log:
Process form if method is POST

Modified:
   
trunk/apps/qubit/modules/informationobject/actions/editPhysicalObjectsAction.class.php

Modified: 
trunk/apps/qubit/modules/informationobject/actions/editPhysicalObjectsAction.class.php
==============================================================================
--- 
trunk/apps/qubit/modules/informationobject/actions/editPhysicalObjectsAction.class.php
      Wed Sep  2 18:01:04 2009        (r3155)
+++ 
trunk/apps/qubit/modules/informationobject/actions/editPhysicalObjectsAction.class.php
      Wed Sep  2 18:08:04 2009        (r3156)
@@ -42,6 +42,16 @@
     $this->form = new sfForm;
 
     $this->relations = 
QubitRelation::getRelationsByObjectId($this->informationObject->getId(), 
array('typeId'=>QubitTerm::HAS_PHYSICAL_OBJECT_ID));
+
+    if ($request->isMethod('post'))
+    {
+      $this->updatePhysicalObjects();
+      $this->deleteRelations();
+
+      $this->informationObject->save();
+
+      $this->redirect(array('module' => 'informationobject', 'action' => 
'show', 'id' => $this->informationObject->id));
+    }
   }
 
   /**

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to