diff --git a/app/models/paper.rb b/app/models/paper.rb index daf814e4..0b2985ff 100644 --- a/app/models/paper.rb +++ b/app/models/paper.rb @@ -358,7 +358,7 @@ def review_body(editor, reviewers, branch=nil) # Return false if the editor login doesn't match one of the known editors def create_review_issue(editor_handle, reviewers, branch=nil) return false if review_issue_id - return false unless editor = Editor.find_by_login(editor_handle) + return false unless editor = Editor.where("lower(login) = ?", editor_handle.downcase).first if labels.any? new_labels = labels.keys + ["review"] - ["pre-review"]