<?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>Searching with more than one strict fields</title> 
  <pubDate>Fri, 10 Apr 2026 09:50:14 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7876</link> 
  <atom:link rel="self" type="application/rss+xml" title="Searching with more than one strict fields" href="https://bugs.horde.org/ticket/7876/rss" /> 
  <description>Searching with more than one strict fields</description> 
 
   
   
  <item> 
   <title>If I use the search() methode from turba/lib/Driver.php with</title> 
   <description>If I use the search() methode from turba/lib/Driver.php with more than one strict field and some other fields as search criteria it returns a PEAR DB Error message.



My small patch adds the missing search type to the strict_search array.



thanks!</description> 
   <pubDate>Tue, 20 Jan 2009 18:51:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7876#t51878</link> 
  </item> 
   
  <item> 
   <title>ups I forgot to add the patch...

sorry!</title> 
   <description>ups I forgot to add the patch...

sorry!</description> 
   <pubDate>Tue, 20 Jan 2009 18:53:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7876#t51879</link> 
  </item> 
   
  <item> 
   <title>Can you please provide an example of the usage that shows th</title> 
   <description>Can you please provide an example of the usage that shows this problem?</description> 
   <pubDate>Sat, 24 Jan 2009 16:12:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7876#t51928</link> 
  </item> 
   
  <item> 
   <title>I&#039;m working on a new module where I would like to create new</title> 
   <description>I&#039;m working on a new module where I would like to create new contact lists in turba. Right now I do this via api-call:



$apiargs = array(

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

        &#039;__type&#039; =&gt; &#039;Group&#039;,

        &#039;__members&#039; =&gt; serialize($this-&gt;_vars-&gt;get(&#039;students&#039;)),

        &#039;name&#039; =&gt; $this-&gt;_vars-&gt;get(&#039;contact_list&#039;)),

    &#039;contentType&#039; =&gt; &#039;array&#039;,

    &#039;source&#039; =&gt; $this-&gt;_vars-&gt;get(&#039;address_book&#039;)

);

$result = $registry-&gt;call(&#039;contacts/import&#039;, $apiargs);



The import methode then adds &#039;owner&#039; as the second strict element and tries to search for an allready existing entry. Without my patch this search results in a mySQL syntax error because the two strict fields &#039;type&#039; and &#039;owner&#039; are not combined by &#039;AND&#039; or &#039;OR&#039;.</description> 
   <pubDate>Sun, 25 Jan 2009 11:15:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7876#t51948</link> 
  </item> 
   
  <item> 
   <title>My reproduce script for posterity:



define(&#039;AUTH_HANDLER&#039;,</title> 
   <description>My reproduce script for posterity:



define(&#039;AUTH_HANDLER&#039;, true);

require &#039;../lib/base.php&#039;;



$_SERVER[&#039;REMOTE_ADDR&#039;] = &#039;127.0.0.1&#039;;

$auth = &amp;Auth::singleton($conf[&#039;auth&#039;][&#039;driver&#039;]);

$auth-&gt;setAuth(&#039;chuck&#039;, array());



require &#039;./lib/base.php&#039;;



$driver = Turba_Driver::singleton(&#039;jenn&#039;);

if (is_a($driver, &#039;PEAR_Error&#039;)) {

    var_dump($driver);

    exit(1);

}

$content = array(&#039;__type&#039; =&gt; &#039;Group&#039;, &#039;__owner&#039; =&gt; &#039;chuck&#039;, &#039;name&#039; =&gt; &#039;DinnerParty&#039;);

$result = $driver-&gt;search($content);

var_dump($result);</description> 
   <pubDate>Mon, 16 Feb 2009 02:18:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7876#t52589</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/turba/docs/CHANGES?rt=horde&amp;r1=1.472&amp;r2=1.473&amp;ty=u
http://cvs.horde.org/diff.php/turba/lib/Driver.php?rt=horde&amp;r1=1.226&amp;r2=1.227&amp;ty=u</description> 
   <pubDate>Mon, 16 Feb 2009 02:21:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7876#t52590</link> 
  </item> 
   
  <item> 
   <title>Committed, thanks!</title> 
   <description>Committed, thanks!</description> 
   <pubDate>Mon, 16 Feb 2009 02:21:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7876#t52591</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
