Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

Commit

Permalink
minor fix - only check when both title and last name are present
Browse files Browse the repository at this point in the history
  • Loading branch information
corajr committed Jul 7, 2012
1 parent 4e41ca5 commit 46d8532
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -112,10 +112,10 @@ Zotero.PreventDuplicates = {

if (title != null && lastName != null) {
var titleLastNameResults = Zotero.DB.query(sql, [thisTitle, lastName]);
if (titleLastNameResults.length > 0) {
returnValue = Zotero.PreventDuplicates.prompt(titleLastNameResults[0]["itemID"]);
}
}
if (titleLastNameResults.length > 0) {
returnValue = Zotero.PreventDuplicates.prompt(titleLastNameResults[0]["itemID"]);
}
}

return returnValue;
Expand Down

0 comments on commit 46d8532

Please sign in to comment.