6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/17/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#2623] Import uses wrong address book
*
Your Email Address
*
Spam protection
Enter the letters below:
.___. .. ..__ .___ [__ |__|| |[ __[__ [___| ||/\|[_./|
Comment
> For address book import operations (including IMP address import), > the Turba 'default_dir' preference is always used even when the > preferred address book is set to something else (e.g. via the IMP > 'add_source' preference). > > > > It appears that the turba/lib/base.php file is included in many of > the Turba API methods (turba/lib/api.php). However, it defines a > variable ($source) that conflicts with parameters of the same name > within these methods. In the case of an import, for example, the > given method parameter is always superceded by the setting from > base.php and all imports are forced into the default address book. > > > > The attached patch simply checks to see whether the $source variable > has already been defined, setting it to the Turba default value only > if it is empty. > > > > I believe this patch will fix a few other latent bugs as well: > > > > - Delete a single entry from non-default address book fails (see _delete) > > - Strange workaround for _getContact no longer needed (per patch) > > - _getContacts only works for default address book > > - _addField only works for default address book > > > > Please review and advise. Thanks!
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers