Fix problem with empty new issue note
This commit is contained in:
parent
ba962a7ae0
commit
67be070489
@ -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 %>
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user