From 6594c60797048440d7093674be010f23949d173f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 2 Apr 2007 17:53:53 +0000 Subject: [PATCH] Fixes #598, Renaming selected tag causes library to "disappear" Addresses #597, Don't iterate Array with for...in --- .../content/zotero/bindings/tagselector.xml | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/bindings/tagselector.xml b/chrome/content/zotero/bindings/tagselector.xml index ade32b6f2..d9690732f 100644 --- a/chrome/content/zotero/bindings/tagselector.xml +++ b/chrome/content/zotero/bindings/tagselector.xml @@ -499,18 +499,28 @@ newName, '', {}); if (result && newName.value) { - Zotero.DB.beginTransaction(); - // Add other ids with same tag var ids = Zotero.Tags.getIDs(oldName); - for each(var id in ids) { - if (tagIDs.indexOf(id) == -1) { - tagIDs.push(id); + + for (var i=0; i