Author: david
Date: Mon Nov 14 15:06:55 2011
New Revision: 10317
Log:
Use QubitInformationObject->referenceCode to avoid error when sfIsadPlugin
class is not loaded. Fixes issue 2080
Modified:
trunk/lib/QubitSearch.class.php
Modified: trunk/lib/QubitSearch.class.php
==============================================================================
--- trunk/lib/QubitSearch.class.php Mon Nov 14 14:40:18 2011 (r10316)
+++ trunk/lib/QubitSearch.class.php Mon Nov 14 15:06:55 2011 (r10317)
@@ -461,8 +461,7 @@
$doc->addField(Zend_Search_Lucene_Field::Text('scopeAndContent',
$informationObject->getScopeAndContent(array('culture' => $language))));
- $isad = new sfIsadPlugin($informationObject);
- $doc->addField(Zend_Search_Lucene_Field::Text('referenceCode',
$isad->referenceCode));
+ $doc->addField(Zend_Search_Lucene_Field::Text('referenceCode',
$informationObject->referenceCode));
// Store dates as serialized array
$dates = array();
--
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.