Commit b759cc244feda3d9e3f637067f2a59990bc33531

Authored by Michael Prilop
1 parent feef3778
Exists in master and in 1 other branch production

Avoid NameError if github integration is not loaded. fixes #465

app/views/problems/_issue_tracker_links.html.haml
... ... @@ -9,7 +9,7 @@
9 9 - if @app.github_repo?
10 10 - if current_user.can_create_github_issues?
11 11 %span= link_to 'create issue', create_issue_app_problem_path(@app, @problem, :tracker => 'user_github'), :method => :post, :class => "github_create create-issue"
12   - - elsif @app.issue_tracker_configured? && @app.issue_tracker.is_a?(GithubIssuesTracker)
  12 + - elsif @app.issue_tracker_configured? && @app.issue_tracker.label.eql?('github')
13 13 %span= link_to 'create issue', create_issue_app_problem_path(@app, @problem), :method => :post, :class => "github_create create-issue"
14   - - if @app.issue_tracker_configured? && !@app.issue_tracker.is_a?(GithubIssuesTracker)
  14 + - if @app.issue_tracker_configured? && !@app.issue_tracker.label.eql?('github')
15 15 %span= link_to 'create issue', create_issue_app_problem_path(@app, @problem), :method => :post, :class => "#{@app.issue_tracker.label}_create create-issue"
... ...