diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js index ed6d47e92..e9bd86711 100644 --- 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'));