Author: jablko
Date: Tue Aug 25 10:56:11 2009
New Revision: 3070
Log:
Don't add parent field if parent not set, i.e. root
Modified:
trunk/apps/qubit/lib/SearchIndex.class.php
Modified: trunk/apps/qubit/lib/SearchIndex.class.php
==============================================================================
--- trunk/apps/qubit/lib/SearchIndex.class.php Tue Aug 25 00:03:38 2009
(r3069)
+++ trunk/apps/qubit/lib/SearchIndex.class.php Tue Aug 25 10:56:11 2009
(r3070)
@@ -242,7 +242,10 @@
$doc = new Zend_Search_Lucene_Document;
- $doc->addField(Zend_Search_Lucene_Field::Keyword('parentId',
$informationObject->parent->id));
+ if (isset($informationObject->parent))
+ {
+ $doc->addField(Zend_Search_Lucene_Field::Keyword('parentId',
$informationObject->parent->id));
+ }
// ID
$doc->addField(Zend_Search_Lucene_Field::Keyword('objectId',
$informationObject->getId()));
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---