commit fec159f96932084e35a4474e6fe6d400db8c8eac
parent 6dbe1d1e198621ae496aa0b3c218937ec03f6a23
Author: Dan Stillman <dstillman@zotero.org>
Date: Sat, 16 Mar 2013 03:45:15 -0400
Fix error on tag change without a selected item (from 1e59c5ab7)
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/bindings/tagsbox.xml b/chrome/content/zotero/bindings/tagsbox.xml
@@ -147,7 +147,7 @@
for (var i=0; i<ids.length; i++) {
[itemID, tagID] = ids[i].split('-');
- if (itemID != this.item.id) {
+ if (!this.item || itemID != this.item.id) {
continue;
}
if (event == 'add') {
@@ -868,6 +868,10 @@
<parameter name="count"/>
<body>
<![CDATA[
+ if (!this.item) {
+ return;
+ }
+
if(typeof count == 'undefined') {
var tags = this.item.getTags();
if(tags)