6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
3/31/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14928] Automatically prepare Kronolith's search_sources
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .___.__..__ __ [__)[__ | |[__)/ ` [__)[___|__|| \__.
Comment
> Hello, > > I've been trying to configure my instance to automatically prepare > Kronolith's search_sources with all address books the user has access > to, for that I've enabled the hook in the local prefs.php > kronolith/config/prefs.php and configured the hook in > kronolith/config/hooks.php: > > <?PHP > class Kronolith_Hooks > { > public function prefs_init($pref, $value, $username, $scope_ob) > { > if (is_null($username)) { // not logged in > return $value; > } > > switch ($pref) { > case 'search_sources': // enable all sources by default > if ($value == '') { > $sources = $GLOBALS['registry']->call('contacts/sources'); > $value = json_encode(array_keys($sources)); > $scope_ob->set($pref, $value); > $scope_ob->setDirty($pref, true); > } > return $value; > } > } > } > > So when I've tried to login, my search_sources are populated but my > freebusy doens't work anymore. Before this configuration I had my > search_source configured manually to look only for my localldap > configuration and that way my freebusy work fine. > > Any idea of what are happening? > > Thank you.
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