プロジェクト

全般

プロフィール

Vote #66962

完了

Cannot delete a project with subprojects that shares versions

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Projects_11
対象バージョン:
開始日:
2010/03/30
期日:
進捗率:

0%

予定工数:
category_id:
11
version_id:
18
issue_org_id:
5219
author_id:
11874
assigned_to_id:
0
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
17
ステータス-->[Closed]

説明

If a project has a subproject,
and the subproject has an issue whose "fixed_version" is shared,
the project and the subproject can not be deleted at once.


Processing ProjectsController#destroy (for 127.0.0.1 at 2010-03-30 23:24:57) [POST]
  Parameters: {"commit"=>"Delete", "confirm"=>"1", "action"=>"destroy", "authenticity_token"=>"s3cPh4RAAGKkzyTkgyW62unKrACnLgS3s40iNwXpcAc=", "id"=>"mytest", "controller"=>"projects"}

RuntimeError (Can't delete version):
  app/models/version.rb:160:in `check_integrity'
  app/controllers/projects_controller.rb:234:in `destroy'
  /opt/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
  /opt/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
  /opt/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
  /opt/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
  /opt/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
  /opt/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
  /opt/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
  /opt/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
  /opt/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
  /opt/local/lib/ruby/1.8/webrick/server.rb:82:in `start'

Rendering rescues/layout (internal_server_error)

journals

I found a solution to fix it.
Here is the patch.

Regards
--------------------------------------------------------------------------------
This should be fixed by r3668.
--------------------------------------------------------------------------------
I confirmed that it was fixed.
Thank you.
--------------------------------------------------------------------------------
Merged in 0.9-stable in r3697.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリProjects_11 にセット
  • 対象バージョン0.9.4_18 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0