commit e22bdaab33226db5b2f5ba6bd2292fa16a98e792
parent cef196529c2b62fa4cdfdfbdafc5e1e624478923
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 28 Jun 2006 18:28:09 +0000
Disallow setting note source to another note (presumably that's what See Also is for)
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js
@@ -1231,6 +1231,10 @@ Scholar.Notes = new function(){
Scholar.DB.commitTransaction();
throw ("Cannot set note source to invalid item " + sourceItemID);
}
+ if (sourceItem.isNote()){
+ Scholar.DB.commitTransaction();
+ throw ("Cannot set note source to another note (" + sourceItemID + ")");
+ }
}
var note = Scholar.Items.getNewItemByType(Scholar.ItemTypes.getID('note'));