Author: david
Date: Fri Jul  8 17:47:28 2011
New Revision: 9267

Log:
Never need to check ascendants for publication status - set per object. Fixes 
issue 1887.

Modified:
   trunk/lib/model/QubitInformationObject.php

Modified: trunk/lib/model/QubitInformationObject.php
==============================================================================
--- trunk/lib/model/QubitInformationObject.php  Fri Jul  8 17:44:08 2011        
(r9266)
+++ trunk/lib/model/QubitInformationObject.php  Fri Jul  8 17:47:28 2011        
(r9267)
@@ -1509,16 +1509,7 @@
   *****************************************************/
   public function getPublicationStatus()
   {
-    // Ascend up object hierarchy until a publication status is found
-    // right up to the root object if necessary (which is set to 'draft' by 
default)
-    foreach ($this->ancestors->andSelf()->orderBy('rgt') as $ancestor)
-    {
-      $status = $ancestor->getStatus($options = array('typeId' => 
QubitTerm::STATUS_TYPE_PUBLICATION_ID));
-      if (isset($status) && null !== $status->statusId)
-      {
-        return $status;
-      }
-    }
+    return $this->getStatus($options = array('typeId' => 
QubitTerm::STATUS_TYPE_PUBLICATION_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.com/group/qubit-commits?hl=en.

Reply via email to