Author: jablko
Date: Thu Sep 24 17:11:08 2009
New Revision: 3531

Log:
Merge common case

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

Modified: 
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editAction.class.php     
Thu Sep 24 17:06:02 2009        (r3530)
+++ trunk/apps/qubit/modules/informationobject/actions/editAction.class.php     
Thu Sep 24 17:11:08 2009        (r3531)
@@ -163,15 +163,10 @@
   {
     switch ($field->getName())
     {
-      case 'parent':
-        $params = 
$this->context->routing->parse(preg_replace('/.*'.preg_quote($this->request->getPathInfoPrefix(),
 '/').'/', null, $this->form->getValue('parent')));
-        $this->informationObject['parentId'] = $params['id'];
-
-        break;
-
       case 'descriptionDetail':
       case 'descriptionStatus':
       case 'levelOfDescription':
+      case 'parent':
       case 'repository':
         $params = 
$this->context->routing->parse(preg_replace('/.*'.preg_quote($this->request->getPathInfoPrefix(),
 '/').'/', null, $this->form->getValue($field->getName())));
         $this->informationObject[$field->getName().'Id'] = $params['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