Skip to content

Commit

Permalink
[api] fix enforce bug issue handling on updatepatchinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Apr 17, 2013
1 parent 00d9c71 commit 1e70173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ def update_patchinfo(patchinfo, opts = {})
if i.text.blank? and not i.name.blank?
issue = Issue.find_or_create_by_name_and_tracker(i.name, i.tracker)
if issue
if enfore_issue_update
if opts[:enfore_issue_update]
# enforce update from issue server
issue.fetch_updates()
end
Expand Down

0 comments on commit 1e70173

Please sign in to comment.