Fix error with Create New Item from Current Page (after r3178)
This commit is contained in:
parent
2d5c89cb9d
commit
4a37c5647a
|
@ -2436,6 +2436,10 @@ Zotero.Item.prototype.__defineGetter__('attachmentPath', function () {
|
||||||
return this._attachmentPath;
|
return this._attachmentPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.id) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
var sql = "SELECT path FROM itemAttachments WHERE itemID=?";
|
var sql = "SELECT path FROM itemAttachments WHERE itemID=?";
|
||||||
var path = Zotero.DB.valueQuery(sql, this.id);
|
var path = Zotero.DB.valueQuery(sql, this.id);
|
||||||
if (!path) {
|
if (!path) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user