commit c5527a82fbd7c5ed8ca47ec388939fdadc8525f9
parent 7447525d7596dc1a1ad08f9ebadcd74d0b4142ba
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 14 Dec 2016 03:37:56 -0500
Generate new saved search names within libraries, not globally
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js
@@ -951,8 +951,12 @@ var ZoteroPane = new function()
s.addCondition('title', 'contains', '');
var untitled = Zotero.getString('pane.collections.untitled');
- untitled = yield Zotero.DB.getNextName('savedSearches', 'savedSearchName',
- Zotero.getString('pane.collections.untitled'));
+ untitled = yield Zotero.DB.getNextName(
+ s.libraryID,
+ 'savedSearches',
+ 'savedSearchName',
+ Zotero.getString('pane.collections.untitled')
+ );
var io = {dataIn: {search: s, name: untitled}, dataOut: null};
window.openDialog('chrome://zotero/content/searchDialog.xul','','chrome,modal',io);
if (!io.dataOut) {