Merge pull request '修复bug check_pm_and_update_due_date' (#269) from KingChan/forgeplus:pm_project_develop into pm_project_develop
This commit is contained in:
commit
725226e930
|
@ -109,7 +109,7 @@ class Issue < ApplicationRecord
|
|||
after_destroy :update_closed_issues_count_in_project!, :decre_project_common, :decre_user_statistic, :decre_platform_statistic
|
||||
|
||||
def check_pm_and_update_due_date
|
||||
if pm_project_id.present? && pm_issue_type.present? && status_id_chenged?
|
||||
if pm_project_id.present? && pm_issue_type.present? && status_id_changed?
|
||||
status_ids = case pm_issue_type
|
||||
when 1
|
||||
[3,5]
|
||||
|
|
Loading…
Reference in New Issue