[dev] turba-git prefs
Michael Rubinsky
mrubinsk at horde.org
Tue Apr 5 14:20:03 UTC 2011
Quoting Ronan SALMON <rsalmon at mbpgroup.com>:
>
> Hi,
>
> I'm trying to set prefs 'addressbooks' to use backend 'localsql'.
>
> I gave up trying to set this pref through hooks.
>
> Here is my prefs.local.php :
> $_prefs['addressbooks']['value'] = json_encode(array('localsql',
> 'localldap', 'favourites'));
>
> The backend 'localsql' is configured using default settings (backends.php).
>
> I've deleted all prefs (ie: mysql> delete from horde_prefs;)
>
> When a user logs in, user's private address book is never available.
As explained in http://bugs.horde.org/ticket/9728 you can't use
the'localsql' in the prefs to represent that source when using shares.
The $cfgSource array, which holds all address book configuration is
populated dynamically with each user's shares during Turba's
application initialization, i.e., 'localsql' will *never* represent
any available address book when using shares.
Have you tried moving the code you were using into the new hook that
Michael Slusarz added? The code that was provided to you that gives
you an accurate list of available address book sources was correct.
The time that the code was being executed, however, was not correct
(it was too early in the application start up process). The new hook
should be called late enough to make this possible.
--mike
The Horde Project (www.horde.org)
mrubinsk at horde.org
More information about the dev
mailing list