Project

General

Profile

Feature #35991 » parent_issue_history.patch

Toru Haraguchi, 2022-08-04 10:37

View differences:

patch/app/models/issue.rb 2022-08-04 16:58:39.812452622 +0900
1817 1817

  
1818 1818
  def recalculate_attributes_for(issue_id)
1819 1819
    if issue_id && p = Issue.find_by_id(issue_id)
1820

  
1821
      p.init_journal(User.current,
1822
        ll(Setting.default_language, :text_status_changed_by_child_issue_change, self.id))
1823
      p.current_journal.notify = false
1824

  
1820 1825
      if p.priority_derived?
1821 1826
        # priority = highest priority of open children
1822 1827
        # priority is left unchanged if all children are closed and there's no default priority defined
......
1863 1868
        end
1864 1869
      end
1865 1870

  
1871
      p.clear_journal unless p.changed?
1872

  
1866 1873
      # ancestors will be recursively updated
1867 1874
      p.save(:validate => false)
1868 1875
    end
patch/config/locales/en-GB.yml 2022-08-04 16:58:39.812452622 +0900
875 875
  text_no_configuration_data: "Roles, trackers, issue statuses and workflow have not been configured yet.\nIt is highly recommended to load the default configuration. You will be able to modify it once loaded."
876 876
  text_load_default_configuration: Load the default configuration
877 877
  text_status_changed_by_changeset: "Applied in changeset %{value}."
878
  text_status_changed_by_child_issue_change: "Applied by child #%{value} change."
878 879
  text_time_logged_by_changeset: "Applied in changeset %{value}."
879 880
  text_issues_destroy_confirmation: 'Are you sure you want to delete the selected issue(s)?'
880 881
  text_select_project_modules: 'Select modules to enable for this project:'
patch/config/locales/en.yml 2022-08-04 16:58:39.812452622 +0900
1240 1240
  text_no_configuration_data: "Roles, trackers, issue statuses and workflow have not been configured yet.\nIt is highly recommended to load the default configuration. You will be able to modify it once loaded."
1241 1241
  text_load_default_configuration: Load the default configuration
1242 1242
  text_status_changed_by_changeset: "Applied in changeset %{value}."
1243
  text_status_changed_by_child_issue_change: "Applied by child #%{value} change."
1243 1244
  text_time_logged_by_changeset: "Applied in changeset %{value}."
1244 1245
  text_issues_destroy_confirmation: 'Are you sure you want to delete the selected issue(s)?'
1245 1246
  text_issues_destroy_descendants_confirmation: "This will also delete %{count} subtask(s)."
patch/config/locales/ja.yml 2022-08-04 16:58:39.812452622 +0900
911 911
  text_no_configuration_data: "ロール、トラッカー、チケットのステータス、ワークフローがまだ設定されていません。\nデフォルト設定のロードを強くお勧めします。ロードした後、それを修正することができます。"
912 912
  text_load_default_configuration: デフォルト設定をロード
913 913
  text_status_changed_by_changeset: "更新履歴 %{value} で適用されました。"
914
  text_status_changed_by_child_issue_change: "子チケット #%{value} によって適用されました。"
914 915
  text_time_logged_by_changeset: "更新履歴 %{value} で適用されました。"
915 916
  text_issues_destroy_confirmation: '本当に選択したチケットを削除しますか?'
916 917
  text_select_project_modules: 'このプロジェクトで使用するモジュールを選択してください:'
(2-2/2)