From 3a24a1e41fdd783caa799ce0dbc9c32aaea1f379 Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 22 Apr 2011 08:18:10 +0000 Subject: - Fix update_contact_row() was setting wrong ID when newcid=null --- program/js/app.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'program/js') diff --git a/program/js/app.js b/program/js/app.js index e529fa671..d0e408da2 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3789,28 +3789,25 @@ function rcube_webmail() // update a contact record in the list this.update_contact_row = function(cid, cols_arr, newcid) { + var c, row, list = this.contact_list; + cid = String(cid).replace(this.identifier_expr, '_'); - newcid = String(newcid).replace(this.identifier_expr, '_'); - var row; - if (this.contact_list.rows[cid] && (row = this.contact_list.rows[cid].obj)) { - for (var c=0; c