Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #9 from lolozere/master

Bug fix to display plugin settings view
  • Loading branch information...
commit 864a9410f6dc3814f061a4385facdb902a56ac91 2 parents 0ad239b + 25befcc
@silppuri silppuri authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/views/settings/_redmine_flowdock.html.erb
View
2  app/views/settings/_redmine_flowdock.html.erb
@@ -1,7 +1,7 @@
<p>Get your Flowdock API tokens from the <a href="https://www.flowdock.com/help/redmine" target="_blank">help page</a>. The tokens are specific to a single Flowdock flow. You can send updates to multiple flows by adding multiple tokens that are separated with a comma.</p>
<% Project.active.each do |project| %>
- <% token = if @settings.empty? then "" else @settings['api_token'][project.identifier] end %>
+ <% token = if @settings.empty? || @settings['api_token'].nil? then "" else @settings['api_token'][project.identifier] end %>
<p>
<%= content_tag(:label, project.name) %>
<%= text_field_tag("settings[api_token][#{project.identifier}]", token) %>
Please sign in to comment.
Something went wrong with that request. Please try again.