<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="/h/themes/default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>field using attribute and parse at the same time</title> 
  <pubDate>Sat, 18 May 2013 09:19:08 +0000</pubDate> 
  <link>http://bugs.horde.org/ticket/8653</link> 
  <atom:link rel="self" type="application/rss+xml" title="field using attribute and parse at the same time" href="http://bugs.horde.org/ticket/8653/rss" /> 
  <description>field using attribute and parse at the same time</description> 
 
   
   
  <item> 
   <title>using ldap backend which requires a name/cn field. 'name' is</title> 
   <description>using ldap backend which requires a name/cn field. 'name' is a composite field and has attribute 'cn'. Adding a contact via turba works fine. 



However, adding a contact via add_address link in imp is broken. Such links call the turba api with the fields 'name' and 'email', but in function toDriverKeys 'name' is composed from empty fileds (firstname, etc.). These fields have to be parsed from 'name' before!



In function toDriverKeys, I reordered the code for parse and attribute: 

1) if there is no 'parse', create it from 'fields'

2) parse

3) then compose from fields (from $hash or $fields)

This is just a quick hack, so no diff.



</description> 
   <pubDate>Tue, 20 Oct 2009 16:25:47 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/8653#t56356</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
