Changeset 5966 in subversion
- Timestamp:
- Mar 5, 2012 2:56:17 PM (15 months ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 7 edited
-
CHANGELOG (modified) (1 diff)
-
program/steps/addressbook/delete.inc (modified) (2 diffs)
-
program/steps/addressbook/export.inc (modified) (2 diffs)
-
program/steps/addressbook/func.inc (modified) (1 diff)
-
program/steps/addressbook/list.inc (modified) (1 diff)
-
program/steps/addressbook/search.inc (modified) (2 diffs)
-
program/steps/addressbook/undo.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r5960 r5966 2 2 =========================== 3 3 4 - Fix duplicate names handling in addressbook searches (#1488375) 4 5 - Fix displaying HTML messages from Disqus (#1488372) 5 6 - Exclude E_STRICT from error_reporting for PHP 5.4 -
trunk/roundcubemail/program/steps/addressbook/delete.inc
r5787 r5966 73 73 // update saved search after data changed 74 74 if (($search_request = $_REQUEST['_search']) && isset($_SESSION['search'][$search_request])) { 75 $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name'); 75 76 $search = (array)$_SESSION['search'][$search_request]; 76 77 $records = array(); … … 95 96 while ($row = $result->next()) { 96 97 $row['sourceid'] = $s; 97 $key = $row['name'] . ':' . $row['sourceid'];98 $key = rcmail_contact_key($row, $sort_col); 98 99 $records[$key] = $row; 99 100 } -
trunk/roundcubemail/program/steps/addressbook/export.inc
r5787 r5966 28 28 if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search']])) 29 29 { 30 $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name'); 30 31 $search = (array)$_SESSION['search'][$_REQUEST['_search']]; 31 32 $records = array(); … … 45 46 while ($row = $result->next()) { 46 47 $row['sourceid'] = $s; 47 $key = $row['name'] . ':' . $row['sourceid'];48 $key = rcmail_contact_key($row, $sort_col); 48 49 $records[$key] = $row; 49 50 } -
trunk/roundcubemail/program/steps/addressbook/func.inc
r5871 r5966 730 730 731 731 732 function rcmail_contact_key($row, $sort_col) 733 { 734 $key = $row[$sort_col] . ':' . $row['sourceid']; 735 736 // add email to a key to not skip contacts with the same name (#1488375) 737 if (!empty($row['email'])) { 738 if (is_array($row['email'])) { 739 $key .= ':' . implode(':', $row['email']); 740 } 741 else { 742 $key .= ':' . $row['email']; 743 } 744 } 745 746 return $key; 747 } 748 749 732 750 /** 733 751 * Returns contact ID(s) and source(s) from GET/POST data -
trunk/roundcubemail/program/steps/addressbook/list.inc
r5850 r5966 51 51 while ($row = $result->next()) { 52 52 $row['sourceid'] = $s; 53 $key = $row[$sort_col] . ':' . $row['sourceid'];53 $key = rcmail_contact_key($row, $sort_col); 54 54 $records[$key] = $row; 55 55 } -
trunk/roundcubemail/program/steps/addressbook/search.inc
r5787 r5966 148 148 $search_set = array(); 149 149 $records = array(); 150 $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name'); 150 151 151 152 foreach ($sources as $s) { … … 186 187 while ($row = $result->next()) { 187 188 $row['sourceid'] = $s['id']; 188 $key = $row['name'] . ':' . $row['sourceid'];189 $key = rcmail_contact_key($row, $sort_col); 189 190 $records[$key] = $row; 190 191 } -
trunk/roundcubemail/program/steps/addressbook/undo.inc
r5787 r5966 69 69 } 70 70 71 while ($row = $result->next()) {72 $row['sourceid'] = $s;73 $key = $row['name'] . ':' . $row['sourceid'];74 $records[$key] = $row;75 }76 unset($result);77 78 71 $search[$s] = $source->get_search_set(); 79 72 }
Note: See TracChangeset
for help on using the changeset viewer.
