Zitat von Mehmet Giritli <mgiri...@giritli.eu>:

On Tue, 2013-03-26 at 14:43 +0200, Mehmet Giritli wrote:
On Mon, 2013-03-25 at 14:24 +0200, Mehmet Giritli wrote:
> On Mon, 2013-03-25 at 13:12 +0100, Jan Schneider wrote:
> > Zitat von Mehmet Giritli <mgiri...@giritli.eu>:
> >
> > > On Mon, 2013-03-25 at 12:02 +0100, Jan Schneider wrote:
> > >> Zitat von Mehmet Giritli <mgiri...@giritli.eu>:
> > >>
> > >> > Hi,
> > >> >
> > >> > I wrote to this list some time ago about a problem. This is the problem:
> > >> >
> > >> > I am trying to set the addressbooks to use when searching or expanding
> > >> > addresses, which can be set in preferences -> mail -> compose ->
> > >> > addressbooks. All the addressbooks that I have are in the list on the
> > >> > right, named "Selected addressbooks". I can move the addressbooks I
> > >> > don't want to be used to the left, named "available addressbooks". The > > >> > settings are kept within a session. But if I log out, the settings are
> > >> > forgotten. This happens with only this particular setting. I tested
> > >> > other settings and everything is saved properly except this one.
> > >> >
> > >> > I tried many things since then and nothing made a difference. I also > > >> > tried a fresh horde install, with a fresh db. The same thing happens
> > >> > there as well!
> > >> >
> > >> > I also checked the relevant preferences and I can see that correct
> > >> > settings are saved in the db. But the webpages do not reflect these
> > >> > settings. How is this even possible?
> > >> >
> > >> > I was told that it is not reproducible. But can someone please provide > > >> > some tips to track this down? What could be the problem causing this
> > >> > behaviour? I tried everything I can think of and now I am stuck. I
> > >> > checked debug logs and there seems to be nothing interesting there. I
> > >> > can provide by email if someone wants to see logs...
> > >>
> > >> You need to start tracking this down in
> > >> IMP_Prefs_Special_Sourceselect::display().
> > >
> > > Thank you.
> > >
> > > I'm editing .../horde5/imp/lib/Prefs/Special/Sourceselect.php and want
> > > to direct the value of a variable to debug log. How can I do that?
> >
> > Horde::debug($variable);
>
> I'm looking at the function display() and the value of
> $search['sources'] is the array of all the addressbooks. When I check
> from sql shell the value of the relevant preference with:
>
> select * from horde_prefs where pref_scope='imp' and pref_uid='mgiritli'
> and pref_name='search_sources'
>
> It shows the only addressbook I actually selected. So the preference is
> correct but reading from it is problematic.
>
> Shouldn't $search['sources'] only return the value I find with the above
> query? i.e., the only selected addressbooks?
>

I tried to track this until Ui/Contacts.php function
getAddressbookSearchParams() but I still get the list of all
addressbooks from $prefs->getValue('search_sources') in this function
instead of the saved ones. Next stop is to where global variable $prefs
is set but couldn't locate it. So can you tell me where that is
please? :-)

Jan,

I checked the global $prefs and in it I have

[search_sources] => Array ( [v] =>
["rz_dY3SUJ_5PUMYhK3NBK2A","favourites","facebook"] [d] =>
["rz_dY3SUJ_5PUMYhK3NBK2A"] )

What is the difference between keys v and d in this array?

v is the value retrieved from the backend, i.e. the database, and d is the default value a defined in prefs.php/prefs.local.php or via hooks.
--
Jan Schneider
The Horde Project
http://www.horde.org/

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org

Reply via email to