summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/addressbook/save.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-22 12:25:08 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-22 12:25:08 +0000
commitddcbdace2ec23d743edf5a834b75254c6500a907 (patch)
tree7f3d4abc90d8be0fdd1d4bf4dbcf19b6b1884125 /roundcubemail/program/steps/addressbook/save.inc
parent363bfc4bef8536007f4c7b93703fe55f84dd7ebb (diff)
- Fix contact row update after name change when in searching mode, update changelog
git-svn-id: https://svn.roundcube.net/trunk@5108 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook/save.inc')
-rw-r--r--roundcubemail/program/steps/addressbook/save.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/addressbook/save.inc b/roundcubemail/program/steps/addressbook/save.inc
index c463bf7fe..ddbd630ef 100644
--- a/roundcubemail/program/steps/addressbook/save.inc
+++ b/roundcubemail/program/steps/addressbook/save.inc
@@ -104,12 +104,13 @@ if (isset($a_record['photo'])) {
$RCMAIL->session->remove('contacts');
}
+$source = get_input_value('_source', RCUBE_INPUT_GPC);
// update an existing contact
if (!empty($cid))
{
$plugin = $RCMAIL->plugins->exec_hook('contact_update',
- array('id' => $cid, 'record' => $a_record, 'source' => get_input_value('_source', RCUBE_INPUT_GPC)));
+ array('id' => $cid, 'record' => $a_record, 'source' => $source));
$a_record = $plugin['record'];
if (!$plugin['abort'])
@@ -136,7 +137,7 @@ if (!empty($cid))
$a_js_cols[] = Q((string)$record[$col]);
// update the changed col in list
- $OUTPUT->command('parent.update_contact_row', $cid, $a_js_cols, $newcid);
+ $OUTPUT->command('parent.update_contact_row', $cid, $a_js_cols, $newcid, $source);
// show confirmation
$OUTPUT->show_message('successfullysaved', 'confirmation', null, false);
@@ -152,7 +153,6 @@ if (!empty($cid))
// insert a new contact
else {
- $source = get_input_value('_source', RCUBE_INPUT_GPC);
// Name of the addressbook already selected on the list
$orig_source = get_input_value('_orig_source', RCUBE_INPUT_GPC);