Aleksander Machniak
2014-05-12 3d36e8380648e231e8db1bb8410a47451b598776
Performance fix: don't send vcard/photo data to the browser after contact update
1 files modified
4 ■■■■ changed files
program/steps/addressbook/save.inc 4 ●●●● patch | view | raw | blame | history
program/steps/addressbook/save.inc
@@ -165,6 +165,10 @@
            $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);