Ticket #1696: group_libraries.patch

File group_libraries.patch, 573 bytes (added by fbennett, 6 years ago)
  • chrome/content/zotero/xpcom/uri.js

     
    204204                } 
    205205                 
    206206                if (libraryType == 'group') { 
    207                         if (!Zotero.Libraries.exists(libraryID)) { 
    208                                 return false; 
    209                         } 
     207                        try { 
    210208                        var libraryID = Zotero.Groups.getLibraryIDFromGroupID(libraryID); 
    211209                        return Zotero.Items.getByLibraryAndKey(libraryID, itemKey); 
     210                        } catch (e) { 
     211                                Zotero.debug(e); 
     212                                return false; 
    212213                } 
    213214        } 
    214215} 
     216}