cv = issue.visible_custom_field_values.detect {|v| v.custom_field_id == column.custom_field.id}
show_value(cv, false)
else
- value = issue.send(column.name)
+ value = column.value_object(issue)
case column.name
when :subject
value = " " * level + value
results = fetch_row_values(issue, query, 0)
assert_equal ["2", "Add ingredients categories", "4.34"], results
end
+
+ def test_fetch_row_values_should_be_able_to_handle_parent_issue_subject
+ query = IssueQuery.new(:project => Project.find(1), :name => '_')
+ query.column_names = [:subject, 'parent.subject']
+ issue = Issue.find(2)
+ issue.parent = Issue.find(1)
+ issue.save!
+
+ results = fetch_row_values(issue, query, 0)
+ assert_equal ['2', 'Add ingredients categories', 'Cannot print recipes'], results
+ end
end