Project

General

Profile

Actions

Defect #8880

closed

Error deleting issue with grandchild

Added by Luis Serrano Aranda almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
Start date:
2011-07-22
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

If I have three task level and I try to delete the parent task Redmine fails.
Task |---> Sub Task Level two |---> Sub Task level three
But if I delete the sub task Level two and after the parent Redmine works

I test without any plugin

The error is:

ActiveRecord::StaleObjectError in IssuesController#destroy

Attempted to delete a stale object: Issue
RAILS_ROOT: /var/www/redmine

Application Trace | Framework Trace | Full Trace
/var/www/redmine/vendor/rails/activerecord/lib/active_record/locking/optimistic.rb:127:in `destroy_without_habtm_shim_for_changesets'
(eval):4:in `destroy_without_callbacks'
/var/www/redmine/app/controllers/issues_controller.rb:245:in `destroy'
/var/www/redmine/app/controllers/issues_controller.rb:243:in `each'
/var/www/redmine/app/controllers/issues_controller.rb:243:in `destroy'
Request

Parameters:

{"authenticity_token"=>"sE0B1d6fC5kL0w6VIuAFYQqGxyyvk1MIkig5RP9wFT0=",
"id"=>"29374"}
Show session dump

Response

Headers:

{"Content-Type"=>"",
"Cache-Control"=>"no-cache"}

My environment is:

My system information

About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.1
Rails version 2.3.11
Active Record version 2.3.11
Active Resource version 2.3.11
Action Mailer version 2.3.11
Active Support version 2.3.11
Edge Rails revision unknown
Application root /var/www/redmine
Environment production
Database adapter mysql
Database schema version 20110511000000

Actions

Also available in: Atom PDF