[imp] Add User to Adressbook
Jan Schneider
jan at horde.org
Thu Jul 23 11:37:58 UTC 2009
Zitat von Christian Mimberg <Maumi at gmx.de>:
> I have defined the following attribute in my turba adressbook.
>
> $attributes['emails'] = array(
> 'label' => _("Emails"),
> 'type' => 'email',
> 'required' => false,
> 'params' => array('allow_multi' => true, 'strip_domain' =>
> false, 'link_compose' => true)
>
> and this map:
>
> 'map' => array(
> '__key' => 'object_id',
> '__owner' => 'owner_id',
> '__type' => 'object_type',
> '__members' => 'object_members',
> '__uid' => 'object_uid',
> 'firstname' => 'object_firstname',
> 'lastname' => 'object_lastname',
> 'birthday' => 'object_bday',
> 'photo' => 'object_photo',
> 'homeStreet' => 'object_homestreet',
> 'homeCity' => 'object_homecity',
> 'homePostalCode' => 'object_homepostalcode',
> 'emails' => 'object_email',
>
> ...
> ),
> 'tabs' => array(
> _("Personal") => array('firstname', 'lastname', 'name',
> 'birthday', 'photo'),
> _("Location") => array('homeStreet', 'homePostalCode', 'homeCity'),
> _("Communications") => array('emails', 'homePhone',
> 'cellPhone', 'fax', 'workPhone', 'workFax', 'germancellPhone'),
> _("Organization") => array('company', 'workStreet',
> 'workPostalCode', 'workCity'),
> _("Other") => array('notes'),
>
>
> if i add a contact by clicking on the icon "Add user to Adressbook"
> (in a received message) only the name of the contact is insert into
> the adressbook. The emailadress is not insert.
>
> The Link is:
>
> http://www.mydomain.de/horde/imp/message.php?mailbox=INBOX&index=7064&start=1&message_token=iaoxKj9COkuVQWHTmBofbAc-t_I&actionID=add_address&name=&address=testname78%40testdomain.de
>
> Where is the problem?
That functionality is expecting an "email" attribute, not "emails".
Instead of using a different attribute, just change the email
attribute to allow multiple addresses.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.horde.org/archives/imp/attachments/20090723/2113905d/attachment.bin>
More information about the imp
mailing list