Author: david
Date: Wed Apr 11 13:11:12 2012
New Revision: 11432

Log:
Add 'name' to list of searchable fields.  Cosmetic changes to adding results to 
name access point array.  Fixes issue 2245.

Modified:
   trunk/lib/QubitSearchInformationObject.class.php

Modified: trunk/lib/QubitSearchInformationObject.class.php
==============================================================================
--- trunk/lib/QubitSearchInformationObject.class.php    Wed Apr 11 12:50:58 
2012        (r11431)
+++ trunk/lib/QubitSearchInformationObject.class.php    Wed Apr 11 13:11:12 
2012        (r11432)
@@ -74,6 +74,7 @@
       'material_type_id',
       'media_type',
       'media_type_id',
+      'name',
       'notes',
       'parent',
       'part_of',
@@ -756,7 +757,7 @@
     if (!isset(self::$statements['actorRelation']))
     {
       $sql  = 'SELECT
-                  i18n.authorized_form_of_name as name';
+                  i18n.authorized_form_of_name';
       $sql .= ' FROM '.QubitActor::TABLE_NAME.' actor';
       $sql .= ' JOIN '.QubitActorI18n::TABLE_NAME.' i18n
                   ON actor.id = i18n.id';
@@ -776,9 +777,9 @@
 
     foreach (self::$statements['actorRelation']->fetchAll(PDO::FETCH_OBJ) as 
$item)
     {
-      if (!in_array($item->name, $names))
+      if (!in_array($item->authorized_form_of_name, $names))
       {
-        $names[] = $item->name;
+        $names[] = $item->authorized_form_of_name;
       }
     }
 

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