summaryrefslogtreecommitdiff
path: root/program/steps/addressbook
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-05-12 17:05:53 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-05-12 17:05:53 +0200
commitb693dcf4e3981425df7b3cda504cab3966d32ebe (patch)
treecb05dec92cedb623a9737aa6290fd324b01e4d3a /program/steps/addressbook
parent5983ba959db52d232a074414cbb781a784ca916f (diff)
parent618318ba036f083071182e49170abd1b96dd8ba8 (diff)
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/steps/addressbook')
-rw-r--r--program/steps/addressbook/save.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc
index 94556f96b..7451f433b 100644
--- a/program/steps/addressbook/save.inc
+++ b/program/steps/addressbook/save.inc
@@ -165,6 +165,10 @@ if (!empty($cid)) {
$a_js_cols[] = rcube::Q((string)$record[$col]);
}
+ // performance: unset some big data items we don't need here
+ $record = array_intersect_key($record, array('ID' => 1,'email' => 1,'name' => 1));
+ $record['_type'] = 'person';
+
// update the changed col in list
$OUTPUT->command('parent.update_contact_row', $cid, $a_js_cols, $newcid, $source, $record);