Defect #24041 » update_issue_subject_v2.patch
| app/helpers/timelog_helper.rb | ||
|---|---|---|
|
end
|
||
|
end
|
||
|
def format_issue_subject(issue)
|
||
|
if issue.try(:visible?)
|
||
|
"#{issue.tracker.name} ##{issue.id}: #{issue.subject}"
|
||
|
else
|
||
|
''
|
||
|
end
|
||
|
end
|
||
|
def report_to_csv(report)
|
||
|
Redmine::Export::CSV.generate do |csv|
|
||
|
# Column headers
|
||
| app/views/timelog/_form.html.erb | ||
|---|---|---|
|
<% end %>
|
||
|
<p>
|
||
|
<%= f.text_field :issue_id, :size => 6 %>
|
||
|
<% if @time_entry.issue.try(:visible?) %>
|
||
|
<span id="time_entry_issue"><%= "#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}" %></span>
|
||
|
<% end %>
|
||
|
<span id="time_entry_issue">
|
||
|
<%= format_issue_subject(@time_entry.issue) %>
|
||
|
</span>
|
||
|
</p>
|
||
|
<p><%= f.date_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %></p>
|
||
|
<p><%= f.text_field :hours, :size => 6, :required => true %></p>
|
||
| app/views/timelog/new.js.erb | ||
|---|---|---|
|
$('#time_entry_activity_id').html('<%= escape_javascript options_for_select(activity_collection_for_select_options(@time_entry), @time_entry.activity_id) %>');
|
||
|
$('#time_entry_issue').html('<%= escape_javascript format_issue_subject(@time_entry.issue) %>');
|
||