Fix problem with empty new issue note

This commit is contained in:
Alexander Meindl 2015-10-08 17:00:53 +02:00
parent ba962a7ae0
commit 67be070489
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<% if @issue.new_ticket_message != '' %>
<% unless @issue.new_ticket_message.blank? %>
<div class="nodata nodata-left">
<%= textilizable(issue.new_ticket_message).html_safe %>
<%= textilizable(@issue.new_ticket_message).html_safe %>
</div>
<% end %>

View File

@ -30,7 +30,9 @@ module RedmineTweaks
def new_ticket_message
@new_ticket_message = ''
@new_ticket_message << Setting.plugin_redmine_tweaks['new_ticket_message']
unless Setting.plugin_redmine_tweaks['new_ticket_message'].blank?
@new_ticket_message << Setting.plugin_redmine_tweaks['new_ticket_message']
end
end
private