From b922e4adc4f8302edd52fdee5bf1068c48426539 Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 20 Jul 2011 13:10:16 +0000 Subject: -Make sure to remove row when adding row for entry that already exists git-svn-id: https://svn.roundcube.net/trunk@4945 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/acl/acl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/acl/acl.js b/plugins/acl/acl.js index 5c7a6d41f..9ca0a2384 100644 --- a/plugins/acl/acl.js +++ b/plugins/acl/acl.js @@ -99,9 +99,12 @@ rcube_webmail.prototype.acl_cancel = function() // Update data after save (and hide form) rcube_webmail.prototype.acl_update = function(o) { - // delete row + // delete old row if (o.old) this.acl_remove_row(o.old); + // make sure the same ID doesn't exist + else if (this.env.acl[o.id]) + this.acl_remove_row(o.id); // add new row this.acl_add_row(o, true); -- cgit v1.2.3