Defect #32768 » 0001-Fix-Internal-Error-when-issue-text-custom-field-is-s.patch
| app/views/timelog/_list.html.erb | ||
|---|---|---|
|
<%= link_to_context_menu %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% @query.block_columns.each do |column|
|
||
|
if (text = column_content(column, issue)) && text.present? -%>
|
||
|
if (text = column_content(column, entry)) && text.present? -%>
|
||
|
<tr class="<%= current_cycle %>">
|
||
|
<td colspan="<%= @query.inline_columns.size + 1 %>" class="<%= column.css_classes %>">
|
||
|
<% if query.block_columns.count > 1 %>
|
||
|
<% if @query.block_columns.count > 1 %>
|
||
|
<span><%= column.caption %></span>
|
||
|
<% end %>
|
||
|
<%= text %>
|
||
| test/functional/timelog_controller_test.rb | ||
|---|---|---|
|
assert_select '+ span.count', :text => '2'
|
||
|
end
|
||
|
end
|
||
|
def test_index_with_inline_issue_long_text_custom_field_column
|
||
|
field = IssueCustomField.create!(:name => 'Long text', :field_format => 'text', :full_width_layout => '1',
|
||
|
:tracker_ids => [1], :is_for_all => true)
|
||
|
issue = Issue.find(1)
|
||
|
issue.custom_field_values = {field.id => 'This is a long text'}
|
||
|
issue.save!
|
||
|
get :index, :params => {
|
||
|
:set_filter => 1,
|
||
|
:c => ['subject', 'description', "issue.cf_#{field.id}"]
|
||
|
}
|
||
|
assert_response :success
|
||
|
assert_select "td.issue_cf_#{field.id}", :text => 'This is a long text'
|
||
|
end
|
||
|
end
|
||