diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-20 13:10:16 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-20 13:10:16 +0000 |
| commit | b922e4adc4f8302edd52fdee5bf1068c48426539 (patch) | |
| tree | b5078a380284871278fb00257d1f9283d3bbd073 /plugins/acl | |
| parent | 3446e53b234c7e608aecd3047aa71ef3b97ed270 (diff) | |
-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
Diffstat (limited to 'plugins/acl')
| -rw-r--r-- | plugins/acl/acl.js | 5 |
1 files changed, 4 insertions, 1 deletions
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); |
