Performance fix: don't send vcard/photo data to the browser after contact update

pull/190/head
Aleksander Machniak 11 years ago
parent 2b72ec46a7
commit 3d36e83806

@ -165,6 +165,10 @@ if (!empty($cid)) {
$a_js_cols[] = rcube::Q((string)$record[$col]); $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 // update the changed col in list
$OUTPUT->command('parent.update_contact_row', $cid, $a_js_cols, $newcid, $source, $record); $OUTPUT->command('parent.update_contact_row', $cid, $a_js_cols, $newcid, $source, $record);

Loading…
Cancel
Save