Feature #31863 ยป Added_a_mapping_in_the_parent_task_ID_children_.patch
| app/helpers/issues_helper.rb (date 1565185512523) | ||
|---|---|---|
| 150 | 150 |
content_tag('table', s, :class => 'list issues odd-even')
|
| 151 | 151 |
end |
| 152 | 152 |
|
| 153 |
def render_children(issue, api) |
|
| 154 |
@children = Issue.where(:parent_id => issue.id) |
|
| 155 |
if @children != [] |
|
| 156 |
array = Array.new |
|
| 157 |
@children.each do |child| |
|
| 158 |
array.push(child.id) |
|
| 159 |
end |
|
| 160 |
eval("api.#{"children_id"} array")
|
|
| 161 |
end |
|
| 162 |
end |
|
| 163 |
|
|
| 153 | 164 |
def issue_estimated_hours_details(issue) |
| 154 | 165 |
if issue.total_estimated_hours.present? |
| 155 | 166 |
if issue.total_estimated_hours == issue.estimated_hours |
| app/views/issues/index.api.rsb (date 1565185512500) | ||
|---|---|---|
| 11 | 11 |
api.category(:id => issue.category_id, :name => issue.category.name) unless issue.category.nil? |
| 12 | 12 |
api.fixed_version(:id => issue.fixed_version_id, :name => issue.fixed_version.name) unless issue.fixed_version.nil? |
| 13 | 13 |
api.parent(:id => issue.parent_id) unless issue.parent.nil? |
| 14 |
|
|
| 14 |
render_children(issue, api) |
|
| 15 | 15 |
api.subject issue.subject |
| 16 | 16 |
api.description issue.description |
| 17 | 17 |
api.start_date issue.start_date |