[Tickets #7876] Re: Searching with more than one strict fields

bugs at horde.org bugs at horde.org
Sun Jan 25 11:15:29 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7876
------------------------------------------------------------------------------
  Ticket             | 7876
  Updated By         | tinu at humbapa.ch
  Summary            | Searching with more than one strict fields
  Queue              | Turba
  Version            | 2.3.1
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


tinu at humbapa.ch (2009-01-25 06:15) wrote:

I'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(
     'content' => array(
         '__type' => 'Group',
         '__members' => serialize($this->_vars->get('students')),
         'name' => $this->_vars->get('contact_list')),
     'contentType' => 'array',
     'source' => $this->_vars->get('address_book')
);
$result = $registry->call('contacts/import', $apiargs);

The import methode then adds 'owner' 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  
'type' and 'owner' are not combined by 'AND' or 'OR'.






More information about the bugs mailing list