Author: david
Date: Mon Aug 22 17:24:18 2011
New Revision: 9562

Log:
Check resource ancestors to find repository

Modified:
   trunk/lib/model/QubitDigitalObject.php

Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php      Mon Aug 22 16:25:40 2011        
(r9561)
+++ trunk/lib/model/QubitDigitalObject.php      Mon Aug 22 17:24:18 2011        
(r9562)
@@ -776,9 +776,9 @@
 
     // determine path for current repository 
     $repoDir = '';
-    if (isset($infoObject->repository))
+    if (null !== ($repo = $infoObject->getRepository(array('inherit' => 
true))))
     {
-      $repoDir = $infoObject->repositoryId;
+      $repoDir = $repo->id;
     }
     else
     {

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