Author: sevein
Date: Mon Aug  8 17:23:56 2011
New Revision: 9466

Log:
Extend save()

Modified:
   trunk/lib/model/QubitRightsHolder.php

Modified: trunk/lib/model/QubitRightsHolder.php
==============================================================================
--- trunk/lib/model/QubitRightsHolder.php       Mon Aug  8 16:59:21 2011        
(r9465)
+++ trunk/lib/model/QubitRightsHolder.php       Mon Aug  8 17:23:56 2011        
(r9466)
@@ -19,4 +19,13 @@
 
 class QubitRightsHolder extends BaseRightsHolder
 {
+  public function save($connection = null)
+  {
+    if (self::ROOT_ID != $this->id && !isset($this->parentId) && 
'QubitRightsHolder' == $this->className)
+    {
+      $this->parentId = self::ROOT_ID;
+    }
+
+    parent::save($connection);
+  }
 }

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