Author: mj
Date: Tue Oct 25 10:45:58 2011
New Revision: 10184
Log:
Small fix to ensure imported information objects have a default publication
status set before indexing.
Modified:
trunk/lib/QubitXmlImport.class.php
Modified: trunk/lib/QubitXmlImport.class.php
==============================================================================
--- trunk/lib/QubitXmlImport.class.php Tue Oct 25 10:20:24 2011 (r10183)
+++ trunk/lib/QubitXmlImport.class.php Tue Oct 25 10:45:58 2011 (r10184)
@@ -417,6 +417,12 @@
}
}
+ // make sure we have a publication status set before indexing
+ if ($currentObject instanceof QubitInformationObject &&
count($currentObject->statuss) == 0)
+ {
+
$currentObject->setPublicationStatus(sfConfig::get('app_defaultPubStatus',
QubitTerm::PUBLICATION_STATUS_DRAFT_ID));
+ }
+
// save the object after it's fully-populated
$currentObject->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.com/group/qubit-commits?hl=en.