Author: david
Date: Tue Nov 10 10:49:11 2009
New Revision: 3882

Log:
Explicitly set publication status for child objects when updating status of 
parent object.  Fixes issue #1115.

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     
Tue Nov 10 00:07:11 2009        (r3881)
+++ trunk/apps/qubit/modules/informationobject/actions/editAction.class.php     
Tue Nov 10 10:49:11 2009        (r3882)
@@ -735,7 +735,7 @@
         // document so that the changed status is reflected in search and list 
browse results
         foreach ($this->informationObject->descendants as $descendant)
         {
-          $descendant->setStatus($options = array('typeId' => 
QubitTerm::STATUS_TYPE_PUBLICATION_ID, 'statusId' => null));
+          $descendant->setStatus($options = array('typeId' => 
QubitTerm::STATUS_TYPE_PUBLICATION_ID, 'statusId' => $pubStatusId));
           $descendant->save();
         }
       }

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