6.0.0-alpha12
6/12/25

[#7713] prefs addressbooks and localldap \n and \t
Summary prefs addressbooks and localldap \n and \t
Queue Turba
Queue Version 2.3
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester dom.lalot (at) gmail (dot) com
Created 11/21/2008 (6047 days ago)
Due
Updated 11/24/2008 (6044 days ago)
Assigned
Resolved 11/22/2008 (6046 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/24/2008 07:37:54 AM dom (dot) lalot (at) gmail (dot) com Comment #3 Reply to this comment
$lines = explode("\n", $GLOBALS['prefs']->getValue('addressbooks'));

etc. \n is correct.
Yes I check the code also and you're right. I had something not 
working and was wondering if there was no mistake as in some prefs, 
you're using \t and in another \n

May be, it would be better to accept \n or \t..



in turba/config/prefs.php



// Address books to be displayed in the address book selection widget

// and in the Browse menu item.  The address book name is stored using

// the source key from sources.php (e.g. "localsql").  Separate

// entries with "\n" , e. g. 'value' => "localsql\nlocalldap" (the

// double quotes are REQUIRED).  If 'value' is empty (''), all address

// books that the user has permissions to will be listed.



in kronolith/config/prefs.php



// address book(s) to use when expanding addresses

// You can provide default values this way (note the \t and the double 
quotes):

// 'value' => "source_one\tsource_two"

// refer to turba/config/sources.php for possible source values

$_prefs['search_sources'] = array(

     'value' => "localldap\tlocalsql",

     'locked' => true,

     'shared' => false,

     'type' => 'implicit',

);






11/22/2008 02:32:27 AM Chuck Hagenbuch Comment #2
Summary ⇒ prefs addressbooks and localldap \n and \t
State ⇒ Not A Bug
Reply to this comment
$lines = explode("\n", $GLOBALS['prefs']->getValue('addressbooks'));



etc. \n is correct.
11/21/2008 12:19:55 PM dom (dot) lalot (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Turba
Summary ⇒ prefs addressbooks and localldap \n and \t
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
BAD comment, it's not \n but \t. It's not working with \n



// Address books to be displayed in the address book selection widget

// and in the Browse menu item.  The address book name is stored using

// the source key from sources.php (e.g. "localsql").  Separate

// entries with "\n" , e. g. 'value' => "localsql\nlocalldap" (the

// double quotes are REQUIRED).  If 'value' is empty (''), all address

// books that the user has permissions to will be listed.

$_prefs['addressbooks'] = array(

     'value' => "localsql\tlocalldap",

     'locked' => true,

     'shared' => false,

     'type' => 'implicit',

);


Saved Queries