I am following up on a submitted bug and was hoping someone else could confirm the behaviour I'm seeing.
I have added the following to program/steps/addressbook/search.inc to demonstrate the problem (note that first line below should be the existing line 34).
$_SESSION['search'][$search_request] = $CONTACTS->get_search_set(); $kfh = fopen("logs/filter", "a"); fwrite($kfh, "Filter at search.inc (in SESSION)\n "); fwrite($kfh, $_SESSION['search'][$search_request]); fwrite($kfh, "\n"); fwrite($kfh, "Filter at search.inc (in CONTACTS)\n "); fwrite($kfh, $CONTACTS->get_search_set()); fwrite($kfh, "\n"); fclose($kfh);
What I am seeing after the first search is that $_SESSION['search'][$search_request] does indeed equal $CONTACTS->get_search_set() (which is a full valid filter). However, for every subsequent search, $_SESSION['search'][$search_request] ends up being "(", even though $CONTACTS->get_search_set() does contain the full valid filter.
Basically, it seems that the assignment on line 34 works fine for the first search, but fails after that. It can be reset by logging out and in again.
Kyle _______________________________________________ List info: http://lists.roundcube.net/dev/