<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Search List mixes fields</title> 
  <pubDate>Fri, 10 Apr 2026 12:09:54 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6598</link> 
  <atom:link rel="self" type="application/rss+xml" title="Search List mixes fields" href="https://bugs.horde.org/ticket/6598/rss" /> 
  <description>Search List mixes fields</description> 
 
   
   
  <item> 
   <title>With the current CVS code, the search list mixes the fields.</title> 
   <description>With the current CVS code, the search list mixes the fields. That happens to all fields that are in the view. But only if its a sql source and the name field is composed by firstname and lastname.

The name field is in the list view shown as &quot;lastname lastname&quot;, but in the details of a contact the name field is shown correctly. More strange is the in the list view fax column shows now the email address and the fax number disappeard. But in the contact details page they are correctly shown.

This happens not for a ldap resource without a composed name field. This behavior occured after one of the last updates.

More strange: Seaching in imp in the addressbooks for the same resources that have the problem with the list view, no addresses are found any more. Only for ldap or a sql resource that has no composed field it is still finding addresse.



Thanks for this great flexible application



Holger



</description> 
   <pubDate>Fri, 11 Apr 2008 14:57:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6598#t44584</link> 
  </item> 
   
  <item> 
   <title>Sounds like a consequence of Jan&#039;s recent changes.</title> 
   <description>Sounds like a consequence of Jan&#039;s recent changes.</description> 
   <pubDate>Fri, 11 Apr 2008 15:34:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6598#t44588</link> 
  </item> 
   
  <item> 
   <title>Unless I&#039;m mis-understanding the issue, I cannot reproduce t</title> 
   <description>Unless I&#039;m mis-understanding the issue, I cannot reproduce this.

Can you give a bit more detail? (The way &#039;name&#039; is configured in sources.php, and the actual values in the various name fields maybe?)



Thanks!</description> 
   <pubDate>Fri, 11 Apr 2008 15:56:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6598#t44589</link> 
  </item> 
   
  <item> 
   <title>Here is the config of that source:

 &#039;map&#039; =&gt; array(

      </title> 
   <description>Here is the config of that source:

 &#039;map&#039; =&gt; array(

        &#039;__key&#039; =&gt; &#039;id&#039;,

        &#039;__uid&#039; =&gt; &#039;id&#039;,

        &#039;name&#039; =&gt; array(&#039;fields&#039; =&gt; array(&#039;firstname&#039;, &#039;lastname&#039;),

                 &#039;format&#039; =&gt; &#039;%s %s&#039;),

        &#039;firstname&#039; =&gt; &#039;first_name&#039;,

        &#039;lastname&#039; =&gt; &#039;last_name&#039;,

        &#039;title&#039; =&gt; &#039;title&#039;,

        &#039;department&#039; =&gt; &#039;department&#039;,

        &#039;birthday&#039; =&gt; &#039;birthdate&#039;,

        &#039;homePhone&#039; =&gt; &#039;phone_home&#039;,

        &#039;cellPhone&#039; =&gt; &#039;phone_mobile&#039;,

        &#039;workPhone&#039; =&gt; &#039;phone_work&#039;,

        &#039;otherPhone&#039; =&gt; &#039;phone_other&#039;,

        &#039;fax&#039; =&gt; &#039;phone_fax&#039;,

        &#039;email&#039; =&gt; &#039;email1&#039;,

        &#039;emails&#039; =&gt; &#039;email2&#039;,

        &#039;assistant&#039; =&gt; &#039;assistant&#039;,

        &#039;homeStreet&#039; =&gt; &#039;primary_address_street&#039;,

        &#039;homeCity&#039; =&gt; &#039;primary_address_city&#039;,

        &#039;homeProvince&#039; =&gt; &#039;primary_address_state&#039;,

        &#039;homePostalCode&#039; =&gt; &#039;primary_address_postalcode&#039;,

        &#039;homeCountry&#039; =&gt; &#039;primary_address_country&#039;,

        &#039;workStreet&#039; =&gt; &#039;alt_address_street&#039;,

        &#039;workCity&#039; =&gt; &#039;alt_address_city&#039;,

        &#039;workProvince&#039; =&gt; &#039;alt_address_state&#039;,

        &#039;workPostalCode&#039; =&gt; &#039;alt_address_postalcode&#039;,

        &#039;workCountry&#039; =&gt; &#039;alt_address_country&#039;

    ),

    &#039;search&#039; =&gt; array(

        &#039;name&#039;,

        &#039;email&#039;,

        &#039;homeCity&#039;,

        &#039;homePhone&#039;,

        &#039;workPhone&#039;,

        &#039;cellPhone&#039;

    ),

    &#039;strict&#039; =&gt; array(

        &#039;id&#039;,

    ),

    &#039;tabs&#039; =&gt; array(

    &#039;Allgemein&#039; =&gt; array(&#039;firstname&#039;, &#039;lastname&#039;, &#039;birthday&#039;, &#039;title&#039;,

                        &#039;homePhone&#039;, &#039;cellPhone&#039;, &#039;workPhone&#039;, &#039;fax&#039;, &#039;email&#039;, &#039;emails&#039;),

    &#039;Addressen&#039; =&gt; array(&#039;department&#039;, &#039;assistant&#039;,

                        &#039;homeStreet&#039;, &#039;homePostalCode&#039;, &#039;homeCity&#039;, &#039;homeProvince&#039;, &#039;homeCountry&#039;,

                        &#039;workStreet&#039;, &#039;workPostalCode&#039;, &#039;workCity&#039;, &#039;workProvince&#039;, &#039;workCountry&#039;)

    ),

    &#039;export&#039; =&gt; true,

    &#039;browse&#039; =&gt; true,

    &#039;use_shares&#039; =&gt; false,

);



In the browser I see following in the surch list following field of the details page

Name: Wegner, Wegner

Firstname: Wegner

Lastname: Wegner

Phone privat: the cell phone number

cell phone: the business number

Phone business: the privat number

Fax: the email addess

E-Mail: nothing

city privat: the postalcode



its completly mixed.



In the debug log I see following for a search:

Apr 12 15:22:25 HORDE [debug] [horde] Connected to the following memcache servers:localhost:11211 [pid 25755 on line 123 of &quot;/usr/share/php/Horde/Memcache.php&quot;]

Apr 12 15:22:25 HORDE [debug] [horde] Read session data (id = 82635f3ca4552932271d46828f2f2946) [pid 25755 on line 164 of &quot;/usr/share/php/Horde/SessionHandler/memcache.php&quot;]

Apr 12 15:22:25 HORDE [debug] [turba] Hook _horde_hook_share_init in application horde not called. [pid 25755 on line 1595 of &quot;/usr/share/php/Horde.php&quot;]

Apr 12 15:22:25 HORDE [debug] [turba] SQL query by Turba_Driver_sql::_search(): SELECT id, first_name, last_name, title, department, birthdate, phone_home, phone_mobile, phone_work, phone_other, phone_fax, email1, email2, assistant, primary_address_street, primary_address_city, primary_address_state, primary_address_postalcode, primary_address_country, alt_address_street, alt_address_city, alt_address_state, alt_address_postalcode, alt_address_country FROM contacts WHERE (((LOWER(first_name) LIKE LOWER(?) OR LOWER(first_name) LIKE LOWER(?)) AND (LOWER(last_name) LIKE LOWER(?) OR LOWER(last_name) LIKE LOWER(?)))) [pid 25755 on line 166 of &quot;/opt/horde/turba/lib/Driver/sql.php&quot;]

Apr 12 15:22:25 HORDE [debug] [turba] SQL query by Horde_Alarm_sql::_list(): SELECT alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods, alarm_params, alarm_title, alarm_text, alarm_snooze, alarm_internal FROM horde_alarms WHERE alarm_dismissed = 0 AND ((alarm_snooze IS NULL AND alarm_start &lt;= ?) OR alarm_snooze &lt;= ?) AND (alarm_end IS NULL OR alarm_end &gt;= ?) AND (alarm_uid = ? OR alarm_uid = ?) ORDER BY alarm_start, alarm_end [pid 25755 on line 148 of &quot;/usr/share/php/Horde/Alarm/sql.php&quot;]

Apr 12 15:22:25 HORDE [debug] [turba] SQL query by Turba_Driver_sql::_search(): SELECT object_id, object_type, owner_id, object_firstname, object_lastname FROM turba_objects WHERE (object_type = ? AND owner_id = ?) [pid 25755 on line 166 of &quot;/opt/horde/turba/lib/Driver/sql.php&quot;]

Apr 12 15:22:25 HORDE [debug] [turba] Max memory usage: 2883584 bytes [pid 25755 on line 333 of &quot;/usr/share/php/Horde/Registry.php&quot;]

Apr 12 15:22:25 HORDE [debug] [turba] Wrote session data (id = 82635f3ca4552932271d46828f2f2946) [pid 25755 on line 212 of &quot;/usr/share/php/Horde/SessionHandler/memcache.php&quot;]









</description> 
   <pubDate>Sat, 12 Apr 2008 13:23:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6598#t44602</link> 
  </item> 
   
  <item> 
   <title>I am still unable to reproduce this even with the supplied s</title> 
   <description>I am still unable to reproduce this even with the supplied source config.  This is what I am doing:



I changed the relevant values in my sources.php file, then I attempted to search my address book for some names.  The results of the search are displayed as expected for me... i.e. all field values look correct.  This is also true when I just &quot;browse&quot; the address book as well.



Can any other dev duplicated this issue? </description> 
   <pubDate>Sat, 12 Apr 2008 15:26:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6598#t44605</link> 
  </item> 
   
  <item> 
   <title>Hi,

to be sure that I havent old or corrupted files in the </title> 
   <description>Hi,

to be sure that I havent old or corrupted files in the turba directory I replaced it with a fresh checked out. But there it is the same.

Another point is, that only the list of the search function is wrong. It I browse the addressbook all is displayed correctly.</description> 
   <pubDate>Sun, 13 Apr 2008 16:06:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6598#t44610</link> 
  </item> 
   
  <item> 
   <title>I tested a little bit more. This wrong mapping for the searc</title> 
   <description>I tested a little bit more. This wrong mapping for the search result list happens only for a mapping to a foreign sql source. If I use the turba sql table for the addressbook it works correctly, although I use there the same mapping for the composite field &#039;name&#039;.</description> 
   <pubDate>Sun, 13 Apr 2008 20:28:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6598#t44615</link> 
  </item> 
   
  <item> 
   <title>I&#039;m wondering if this might have something to do with the co</title> 
   <description>I&#039;m wondering if this might have something to do with the column sort order and / or the name_format pref.  Can you provide what values you are using for these?  Does it occur with different values?



(Admittedly grasping at straws here...) </description> 
   <pubDate>Sun, 13 Apr 2008 23:45:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6598#t44616</link> 
  </item> 
   
  <item> 
   <title>Hi,

I suspected the same. I tested with all three name_form</title> 
   <description>Hi,

I suspected the same. I tested with all three name_format value. last_first, first_last and nothing. But the name field didnt change.

Then I went on to the sort fields in the source configuration. There was only name and email, but that changed nothing. I tested, to be sure, the charset setting, changed one time the source to utf-8 -&gt; no change.

Now the interesting part. In the user preferences I changed the settings for the columns that are displayed for that source and the sort order. Now there was an impact: the name field was build by the last_name and one of the phone fields. Seems that there is the reason of the disorder. But I couldnt get the reason in the code.</description> 
   <pubDate>Mon, 14 Apr 2008 09:06:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6598#t44619</link> 
  </item> 
   
  <item> 
   <title>Ok. I figured out what the issue is.



It&#039;s caused by mappi</title> 
   <description>Ok. I figured out what the issue is.



It&#039;s caused by mapping the same db field (id in your case) to two separate turba fields (__key and __uid).  In your specific case you need to either add a new field for uid, or if it&#039;s a read-only source then don&#039;t map __uid to anything.  But they need to be separate fields. 



In the more general sense, this *is* still a bug since this would occur with any db field that is mapped to two or more turba fields.</description> 
   <pubDate>Mon, 14 Apr 2008 19:15:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6598#t44636</link> 
  </item> 
   
  <item> 
   <title>Fixed in HEAD and merged.</title> 
   <description>Fixed in HEAD and merged.</description> 
   <pubDate>Tue, 15 Apr 2008 04:13:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6598#t44640</link> 
  </item> 
   
  <item> 
   <title>When can she work at  downtown</title> 
   <description>When can she work at  downtown</description> 
   <pubDate>Mon, 27 Jul 2009 18:35:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6598#t55059</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
