Author: sevein
Date: Tue Jul 10 11:00:43 2012
New Revision: 11883

Log:
Set publication status before save the new object, fixes issue 2373

Modified:
   trunk/lib/model/QubitDigitalObject.php

Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php      Tue Jul 10 10:43:03 2012        
(r11882)
+++ trunk/lib/model/QubitDigitalObject.php      Tue Jul 10 11:00:43 2012        
(r11883)
@@ -1130,6 +1130,7 @@
       $newInfoObject = new QubitInformationObject;
       $newInfoObject->parentId = $this->getInformationObject()->id;
       $newInfoObject->setTitle($this->getInformationObject()->getTitle().' 
('.($i + 1).')');
+      
$newInfoObject->setPublicationStatus(sfConfig::get('app_defaultPubStatus', 
QubitTerm::PUBLICATION_STATUS_DRAFT_ID));
       $newInfoObject->save($connection);
 
       // Create and link a new digital object

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