Generate new saved search names within libraries, not globally

This commit is contained in:
Dan Stillman 2016-12-14 03:37:56 -05:00
parent 7447525d75
commit c5527a82fb

View file

@ -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) {