Changeset 4963 in subversion for trunk/roundcubemail/program/steps/mail/autocomplete.inc
- Timestamp:
- Jul 25, 2011 6:49:39 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/autocomplete.inc
r4932 r4963 20 20 */ 21 21 22 $MAXNUM = 15;23 $book_types = (array) $RCMAIL->config->get('autocomplete_addressbooks', 'sql');24 25 22 if ($RCMAIL->action == 'group-expand') { 26 23 $abook = $RCMAIL->get_address_book(get_input_value('_source', RCUBE_INPUT_GPC)); … … 37 34 $OUTPUT->command('replace_group_recipients', $gid, join(', ', $members)); 38 35 } 36 37 $OUTPUT->send(); 39 38 } 40 else if ($book_types && ($search = get_input_value('_search', RCUBE_INPUT_GPC, true))) { 39 40 41 $MAXNUM = (int)$RCMAIL->config->get('autocomplete_max', 15); 42 $search = get_input_value('_search', RCUBE_INPUT_GPC, true); 43 $source = get_input_value('_source', RCUBE_INPUT_GPC); 44 $sid = get_input_value('_id', RCUBE_INPUT_GPC); 45 46 if (strlen($source)) 47 $book_types = array($source); 48 else 49 $book_types = (array) $RCMAIL->config->get('autocomplete_addressbooks', 'sql'); 50 51 if (!empty($book_types) && strlen($search)) { 41 52 $contacts = array(); 42 53 $books_num = count($book_types); … … 88 99 } 89 100 90 $OUTPUT->command('ksearch_query_results', $contacts, $search );101 $OUTPUT->command('ksearch_query_results', $contacts, $search, $sid); 91 102 $OUTPUT->send(); 92 103
Note: See TracChangeset
for help on using the changeset viewer.
