Summary | add_source = localsql not working in share mode |
Queue | Turba |
Queue Version | HEAD |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | almarin (at) um (dot) es |
Created | 05/15/2009 (5909 days ago) |
Due | |
Updated | 06/04/2009 (5889 days ago) |
Assigned | 05/26/2009 (5898 days ago) |
Resolved | 06/04/2009 (5889 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
Version ⇒ HEAD
preference, but will only work if using Horde 3.3.5 (our current CVS
code) or greater due to an issue that was just fixed with pref hooks.
http://cvs.horde.org/diff.php/imp/config/hooks.php.dist?rt=horde&r1=1.3.2.6&r2=1.3.2.7&ty=u
http://cvs.horde.org/diff.php/imp/docs/CHANGES?rt=horde&r1=1.699.2.393&r2=1.699.2.394&ty=u
Priority ⇒ 1. Low
State ⇒ Assigned
Type ⇒ Enhancement
to the user's share.
recomendation from imp/config/prefs.php.dist:
// address book to use for adding addresses
// put $cfgSources array element name in the value field.
// Setting value to localsql would allow you to add contacts to MySQL database
// See turba/config/sources.php for more info
$_prefs['add_source'] = array(
'value' => '',
// 'value' => 'localsql',
'locked' => false,
'shared' => true,
'type' => 'implicit'
);
At least you should mention that it doesn't work in turba's share mode.
icon show if no explicit address book is selected in the prefs either
by the user or by a default value in prefs.php. The value of
'localsql' is not expected to work when localsql is defined as a
shared source, so in that case this value should not be used as a
default value in prefs.php.
The problem is given only in default pref (when you set value =>
'localsql' in prefs.php). If the user enter to options panel and
selects a diferent addressbook, that addresbook prevails over the
default addressbook, because of this condition:
if (!in_array($import_source, $addressbooks)) {
I think the patch make more robust the operation, because you can set
the add_source pref to an addressbook, but that addressbook cound be
deleted in the future. In that case i think it would be more desirable
has the operation done over the default addresbook rather than the
error.
should think that the operation is made over the default addressbook.
This error is given when you click in the icon shown near the address
when you are viewing a mail from IMP. Yes, you are right and it should
be a second step to choose the target addressbook, but if you don't
introduce that second step, the only way to give that functionality is
to work over the default addressbook.
State ⇒ Feedback
different address book than the user intended.
Queue ⇒ Turba
New Attachment: api.php.patch
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ add_source = localsql not working in share mode
Type ⇒ Bug
Priority ⇒ 1. Low
from a message you get this error:
Invalid address book: localsql
I think that the correct behavior is to add that contact to the
default addressbook.
I attach a patch to modify turba/lib/api.php to achieve that.