Changeset baecd8b in github
- Timestamp:
- Jul 26, 2012 11:18:38 AM (10 months ago)
- Children:
- 750fcf8, c40419b
- Parents:
- 5bc1233
- Location:
- program
- Files:
-
- 7 edited
-
include/rcube_config.php (modified) (1 diff)
-
include/rcube_ldap.php (modified) (1 diff)
-
steps/addressbook/delete.inc (modified) (2 diffs)
-
steps/addressbook/list.inc (modified) (3 diffs)
-
steps/addressbook/search.inc (modified) (2 diffs)
-
steps/mail/autocomplete.inc (modified) (2 diffs)
-
steps/mail/list_contacts.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_config.php
r740875e rbaecd8b 50 50 { 51 51 $this->load(); 52 53 // Defaults, that we do not require you to configure, 54 // but contain information that is used in various 55 // locations in the code: 56 $this->set('contactlist_fields', array('name', 'firstname', 'surname', 'email')); 52 57 } 53 58 -
program/include/rcube_ldap.php
r5bc1233 rbaecd8b 768 768 769 769 // use VLV pseudo-search for autocompletion 770 if ($this->prop['vlv_search'] && $this->conn && join(',', (array)$fields) == 'name,firstname,surname,email') 770 $rcmail = rcmail::get_instance(); 771 772 if ($this->prop['vlv_search'] && $this->conn && join(',', (array)$fields) == join(',', $rcmail->config->get('contactlist_fields'))) 771 773 { 772 774 // add general filter to query -
program/steps/addressbook/delete.inc
r041c93c rbaecd8b 71 71 if (($search_request = $_REQUEST['_search']) && isset($_SESSION['search'][$search_request])) { 72 72 $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name'); 73 $afields = $RCMAIL->config->get('contactlist_fields'); 73 74 $search = (array)$_SESSION['search'][$search_request]; 74 75 $records = array(); … … 84 85 85 86 // get records 86 $result = $source->list_records( array('name', 'firstname', 'surname', 'email'));87 $result = $source->list_records($afields); 87 88 88 89 if (!$result->count) { -
program/steps/addressbook/list.inc
r041c93c rbaecd8b 19 19 +-----------------------------------------------------------------------+ 20 20 */ 21 22 $afields = $RCMAIL->config->get('contactlist_fields'); 21 23 22 24 // Use search result … … 44 46 45 47 // get records 46 $result = $source->list_records( array('name', 'firstname', 'surname', 'email'));48 $result = $source->list_records($afields); 47 49 48 50 while ($row = $result->next()) { … … 74 76 75 77 // get contacts for this user 76 $result = $CONTACTS->list_records( array('name', 'firstname', 'surname', 'email'));78 $result = $CONTACTS->list_records($afields); 77 79 78 80 if (!$result->count && $result->searchonly) { -
program/steps/addressbook/search.inc
r041c93c rbaecd8b 146 146 $records = array(); 147 147 $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name'); 148 $afields = $RCMAIL->config->get('contactlist_fields'); 148 149 149 150 foreach ($sources as $s) { … … 180 181 181 182 // get records 182 $result = $source->list_records( array('name', 'firstname', 'surname', 'email'));183 $result = $source->list_records($afields); 183 184 184 185 while ($row = $result->next()) { -
program/steps/mail/autocomplete.inc
r041c93c rbaecd8b 27 27 $abook->set_group($gid); 28 28 $abook->set_pagesize(1000); // TODO: limit number of group members by config 29 $result = $abook->list_records( array('name', 'firstname', 'surname', 'email'));29 $result = $abook->list_records($RCMAIL->config->get('contactlist_fields')); 30 30 while ($result && ($sql_arr = $result->iterate())) { 31 31 foreach ((array)$sql_arr['email'] as $email) { … … 65 65 $abook->set_pagesize($MAXNUM); 66 66 67 if ($result = $abook->search( array('name', 'firstname', 'surname', 'email'), $search, $mode, true, true, 'email')) {67 if ($result = $abook->search($RCMAIL->config->get('contactlist_fields'), $search, $mode, true, true, 'email')) { 68 68 while ($sql_arr = $result->iterate()) { 69 69 // Contact can have more than one e-mail address -
program/steps/mail/list_contacts.inc
r041c93c rbaecd8b 58 58 // get contacts for this user 59 59 $CONTACTS->set_group(0); 60 $result = $CONTACTS->list_records(array('name', 'firstname', 'surname', 'email')); 60 $afields = $RCMAIL->config->get('contactlist_fields'); 61 $result = $CONTACTS->list_records($afields); 61 62 62 63 if (!$result->count && $result->searchonly) {
Note: See TracChangeset
for help on using the changeset viewer.
