6.0.0-alpha14
7/2/25

[#8726] search fields empty
Summary search fields empty
Queue IMP
Queue Version FRAMEWORK_3
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester sistemisti-posta (at) csi (dot) it
Created 11/25/2009 (5698 days ago)
Due
Updated 11/26/2009 (5697 days ago)
Assigned 11/25/2009 (5698 days ago)
Resolved 11/26/2009 (5697 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/26/2009 11:39:52 PM Michael Rubinsky Assigned to Michael Rubinsky
State ⇒ Resolved
 
11/26/2009 07:39:20 AM sistemisti-posta (at) csi (dot) it Comment #9 Reply to this comment
It works!
Thank you very much
11/25/2009 04:45:03 PM Michael Rubinsky Comment #8
Queue ⇒ IMP
Version ⇒ FRAMEWORK_3
Reply to this comment
Moving to IMP queue, issue not specific to groupware bundle.
11/25/2009 04:42:12 PM Michael Rubinsky Comment #7 Reply to this comment
can you try the changes I just committed to CVS (link to diff in 
comment below)?
11/25/2009 04:39:58 PM CVS Commit Comment #6 Reply to this comment
Changes have been made in CVS for this ticket:

Fix parameter passing to registry#call
Bug: 8726
http://cvs.horde.org/diff.php/imp/templates/prefs/sourceselect.inc?rt=horde&r1=1.21.10.4&r2=1.21.10.5&ty=u
11/25/2009 03:41:22 PM sistemisti-posta (at) csi (dot) it Comment #5 Reply to this comment
I see these httpd errors when I enter on Address books Option for IMP:

[Wed Nov 25 16:31:41 2009] [error] [client xx] PHP Warning:   
call_user_func_array() expects parameter 2 to be array, boolean given 
in /var/www/html/horde-webmail-1.2.4/lib/Horde/Registry.php on line 
630, referer: https://xx/services/prefs.php?app=imp
[Wed Nov 25 16:31:41 2009] [error] [client xx] PHP Warning:   
array_keys() expects parameter 1 to be array, null given in 
/var/www/html/horde-webmail-1.2.4/imp/templates/prefs/sourceselect.inc 
on line 8, referer: https://xx/services/prefs.php?app=imp
[Wed Nov 25 16:31:41 2009] [error] [client xx] PHP Warning:   
call_user_func_array() expects parameter 2 to be array, string given 
in /var/www/html/horde-webmail-1.2.4/lib/Horde/Registry.php on line 
630, referer: https://xx/services/prefs.php?app=imp
[Wed Nov 25 16:31:41 2009] [error] [client xx] PHP Warning:   
call_user_func_array() expects parameter 2 to be array, string given 
in /var/www/html/horde-webmail-1.2.4/lib/Horde/Registry.php on line 
630, referer: https://xx/services/prefs.php?app=imp
[Wed Nov 25 16:31:41 2009] [error] [client xx] PHP Warning:   
call_user_func_array() expects parameter 2 to be array, string given 
in /var/www/html/horde-webmail-1.2.4/lib/Horde/Registry.php on line 
630, referer: https://xx/services/prefs.php?app=imp
[Wed Nov 25 16:31:41 2009] [error] [client xx] PHP Warning:   
call_user_func_array() expects parameter 2 to be array, string given 
in /var/www/html/horde-webmail-1.2.4/lib/Horde/Registry.php on line 
630, referer: https://xx/services/prefs.php?app=imp
[Wed Nov 25 16:31:41 2009] [error] [client xx] PHP Warning:   
call_user_func_array() expects parameter 2 to be array, string given 
in /var/www/html/horde-webmail-1.2.4/lib/Horde/Registry.php on line 
630, referer: https://xx/services/prefs.php?app=imp
[Wed Nov 25 16:31:41 2009] [error] [client xx] PHP Warning:  Invalid 
argument supplied for foreach() in 
/var/www/html/horde-webmail-1.2.4/imp/templates/prefs/sourceselect.inc 
on line 74, referer: https://xx/services/prefs.php?app=imp
[Wed Nov 25 16:31:41 2009] [error] [client xx] PHP Warning:  Invalid 
argument supplied for foreach() in 
/var/www/html/horde-webmail-1.2.4/imp/templates/prefs/sourceselect.inc 
on line 74, referer: https://xx/services/prefs.php?app=imp
[Wed Nov 25 16:31:41 2009] [error] [client xx] PHP Warning:  Invalid 
argument supplied for foreach() in 
/var/www/html/horde-webmail-1.2.4/imp/templates/prefs/sourceselect.inc 
on line 74, referer: https://xx/services/prefs.php?app=imp
[Wed Nov 25 16:31:41 2009] [error] [client xx] PHP Warning:  Invalid 
argument supplied for foreach() in 
/var/www/html/horde-webmail-1.2.4/imp/templates/prefs/sourceselect.inc 
on line 74, referer: https://xx/services/prefs.php?app=imp
[Wed Nov 25 16:31:41 2009] [error] [client xx] PHP Warning:  Invalid 
argument supplied for foreach() in 
/var/www/html/horde-webmail-1.2.4/imp/templates/prefs/sourceselect.inc 
on line 74, referer: https://xx/services/prefs.php?app=imp

11/25/2009 03:23:18 PM Michael Rubinsky Comment #4 Reply to this comment
I can't reproduce this.

Any errors in either your horde log, server log, or javascript console?
11/25/2009 03:13:53 PM sistemisti-posta (at) csi (dot) it Comment #3 Reply to this comment
I'm sure. I select an address book on right hand (a "selected" one). 
And the search field is always empty.
11/25/2009 02:44:50 PM Michael Rubinsky Comment #2
State ⇒ Feedback
Reply to this comment
Are you sure you are clicking one of the *selected* address books (in 
the right hand column) and not one of the unselected address books? 
The field list will only show when one of the address books in the 
selected column are highlighted.
11/25/2009 01:30:01 PM sistemisti-posta (at) csi (dot) it Comment #1
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Groupware Webmail Edition
Summary ⇒ search fields empty
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
I have horde-webmail with shared address books and this turba sources.php:

$cfgSources['localsql'] = array(
...
         'firstname' => 'object_firstname',
         'lastname' => 'object_lastname',
         'middlenames' => 'object_middlenames',
         'namePrefix' => 'object_nameprefix',
         'nameSuffix' => 'object_namesuffix',
         'name' => array('fields' => array('namePrefix', 'firstname',
                                           'middlenames', 'lastname',
                                           'nameSuffix'),
                         'format' => '%s %s %s %s %s',
                         'parse' => array(
                             array('fields' => array('firstname', 
'middlenames',
                                                     'lastname'),
                                   'format' => '%s %s %s'),
                             array('fields' => array('firstname', 'lastname'),
                                   'format' => '%s %s'))),
         'email' => 'object_email',
...
     'search' => array(
         'name',
         'email'
     ),
     'strict' => array(
         'object_id',
         'owner_id',
         'object_type',
     ),
     'export' => true,
     'browse' => true,
     'use_shares' => true,
     'list_name_field' => 'lastname',
);

In IMP prefs I set
$_prefs['search_sources'] = array(
     'value' => '',
     'hook' => true,
     'locked' => false,
     'shared' => true,
     'type' => 'implicit');

$_prefs['search_fields'] = array(
     'value' =>  '',
     'locked' => false,
     'shared' => true,
     'type' => 'implicit');

It works. From IMP Option --> Address book I see in the right box (seleceted
address books) my shared address books. Autocomplete works with default fields
(name).

But the box:

"Click on one of your selected address books and then select all fields
to search.
To select multiple fields, hold down the Control (PC) or Command (Mac)
while clicking."

is always empty. No fields shown, same for all address books. I can't set my
personal "search_fields" values.

Regards

Saved Queries