Skip to content

Commit

Permalink
[api] fix bugzilla server instanciation
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Jan 20, 2012
1 parent 0622144 commit 75d870a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/app/models/issue_tracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ def private_fetch_issues(ids=nil)
end

def bugzilla_server
server = XMLRPC::Client.new2("#{self.url}/xmlrpc.cgi", user=self.user, password=self.password)
server = XMLRPC::Client.new2("#{self.url}/xmlrpc.cgi")
server.user=self.user if self.user
server.password=self.password if self.password
return server.proxy('Bug')
end

Expand Down

0 comments on commit 75d870a

Please sign in to comment.