Commit 48f167818e5a478bc93c788ce7b332e0d5f4e4a0

Authored by Thomas von Deyen
1 parent 6194e085
Exists in master and in 1 other branch production

Using local variable for configuring redmine tracker settings.

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
app/models/issue_trackers/redmine_tracker.rb
@@ -35,10 +35,12 @@ if defined? RedmineClient @@ -35,10 +35,12 @@ if defined? RedmineClient
35 def create_issue(problem, reported_by = nil) 35 def create_issue(problem, reported_by = nil)
36 token = api_token 36 token = api_token
37 acc = account 37 acc = account
  38 + user = username
  39 + passwd = password
38 RedmineClient::Base.configure do 40 RedmineClient::Base.configure do
39 self.token = token 41 self.token = token
40 - self.user = username  
41 - self.password = password 42 + self.user = user
  43 + self.password = passwd
42 self.site = acc 44 self.site = acc
43 self.format = :xml 45 self.format = :xml
44 end 46 end