Changeset 5967 in subversion
- Timestamp:
- Mar 5, 2012 2:59:07 PM (15 months ago)
- Location:
- branches/release-0.7
- 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
-
branches/release-0.7/CHANGELOG
r5961 r5967 2 2 =========================== 3 3 4 - Fix duplicate names handling in addressbook searches (#1488375) 4 5 - Fix displaying of HTML messages from Disqus (#1488372) 5 6 - Disable E_STRICT warnings on PHP 5.4 -
branches/release-0.7/program/steps/addressbook/delete.inc
r4951 r5967 70 70 // update saved search after data changed 71 71 if (($search_request = $_REQUEST['_search']) && isset($_SESSION['search'][$search_request])) { 72 $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name'); 72 73 $search = (array)$_SESSION['search'][$search_request]; 73 74 $records = array(); … … 92 93 while ($row = $result->next()) { 93 94 $row['sourceid'] = $s; 94 $key = $row['name'] . ':' . $row['sourceid'];95 $key = rcmail_contact_key($row, $sort_col); 95 96 $records[$key] = $row; 96 97 } -
branches/release-0.7/program/steps/addressbook/export.inc
r5274 r5967 25 25 if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search']])) 26 26 { 27 $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name'); 27 28 $search = (array)$_SESSION['search'][$_REQUEST['_search']]; 28 29 $records = array(); … … 42 43 while ($row = $result->next()) { 43 44 $row['sourceid'] = $s; 44 $key = $row['name'] . ':' . $row['sourceid'];45 $key = rcmail_contact_key($row, $sort_col); 45 46 $records[$key] = $row; 46 47 } -
branches/release-0.7/program/steps/addressbook/func.inc
r5873 r5967 729 729 730 730 731 function rcmail_contact_key($row, $sort_col) 732 { 733 $key = $row[$sort_col] . ':' . $row['sourceid']; 734 735 // add email to a key to not skip contacts with the same name (#1488375) 736 if (!empty($row['email'])) { 737 if (is_array($row['email'])) { 738 $key .= ':' . implode(':', $row['email']); 739 } 740 else { 741 $key .= ':' . $row['email']; 742 } 743 } 744 745 return $key; 746 } 747 748 731 749 /** 732 750 * Returns contact ID(s) and source(s) from GET/POST data -
branches/release-0.7/program/steps/addressbook/list.inc
r5872 r5967 48 48 while ($row = $result->next()) { 49 49 $row['sourceid'] = $s; 50 $key = $row[$sort_col] . ':' . $row['sourceid'];50 $key = rcmail_contact_key($row, $sort_col); 51 51 $records[$key] = $row; 52 52 } -
branches/release-0.7/program/steps/addressbook/search.inc
r5681 r5967 145 145 $search_set = array(); 146 146 $records = array(); 147 $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name'); 147 148 148 149 foreach ($sources as $s) { … … 183 184 while ($row = $result->next()) { 184 185 $row['sourceid'] = $s['id']; 185 $key = $row['name'] . ':' . $row['sourceid'];186 $key = rcmail_contact_key($row, $sort_col); 186 187 $records[$key] = $row; 187 188 } -
branches/release-0.7/program/steps/addressbook/undo.inc
r4916 r5967 66 66 } 67 67 68 while ($row = $result->next()) {69 $row['sourceid'] = $s;70 $key = $row['name'] . ':' . $row['sourceid'];71 $records[$key] = $row;72 }73 unset($result);74 75 68 $search[$s] = $source->get_search_set(); 76 69 }
Note: See TracChangeset
for help on using the changeset viewer.
