Author: sevein
Date: Fri Jul 22 15:11:23 2011
New Revision: 9355

Log:
Fixes in the rights edit component

Modified:
   trunk/apps/qubit/modules/right/actions/editComponent.class.php

Modified: trunk/apps/qubit/modules/right/actions/editComponent.class.php
==============================================================================
--- trunk/apps/qubit/modules/right/actions/editComponent.class.php      Fri Jul 
22 14:59:31 2011        (r9354)
+++ trunk/apps/qubit/modules/right/actions/editComponent.class.php      Fri Jul 
22 15:11:23 2011        (r9355)
@@ -89,13 +89,6 @@
 
   public function processForm()
   {
-    // Ignore this method if duplicating
-    if (isset($this->request->sourceId))
-    {
-      return;
-    }
-
-    $params = array($this->request->editRight);
     if (isset($this->request->editRights))
     {
       // If dialog JavaScript did it's work, then use array of parameters
@@ -128,7 +121,11 @@
         }
         else
         {
-          $this->resource->rights[] = $this->right = new QubitRight;
+          $this->relation = new QubitRelation;
+          $this->relation->subject = $this->resource;
+          $this->relation->typeId = QubitTerm::RIGHT_ID;
+
+          $this->resource->relationsRelatedByobjectId[] = $this->relation;
         }
 
         foreach ($this->form as $field)

-- 
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.com/group/qubit-commits?hl=en.

Reply via email to