Browse Source

修复:child_count的更新

pull/347/head
yystopf 1 year ago
parent
commit
75011f66c3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/controllers/api/pm/issues_controller.rb

+ 2
- 1
app/controllers/api/pm/issues_controller.rb View File

@@ -213,7 +213,8 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
children_issue = Issue.where(fake_id: row[0]).last
parent_issue = Issue.where(fake_id: row[1]).last
next if children_issue.blank? || parent_issue.blank?
children_issue.update_column(:root_id, parent_issue.id)
children_issue.root_id = parent_issue.id
children_issue.save(touch: false)
end
when 'link_relations'
sheet.rows.each.with_index do |row, index|


Loading…
Cancel
Save