Fixed "getFile() can only be called on attachment items" error whent here was a conflict set with both a regular item and an attachment

This commit is contained in:
Dan Stillman 2009-02-19 20:35:04 +00:00
parent 7572703065
commit d7d4bc01d7

View file

@ -63,7 +63,7 @@
}
// Check for note or attachment
if (this.type == 'item') {
if (val instanceof Zotero.Item) {
this.type = this._getTypeFromItem(val);
}