This project is archived and is in readonly mode.

autosave associations should not destroy twice when saving twice
Reported by ransom-briggs (at uiowa) | April 21st, 2009 @ 05:17 PM | in 2.3.6
Something marked_for_destruction? that is successfully destroyed will have a second destroy attempted if the parent object is saved a second time. I would expect the destroyed object to be ignored by autosave associations.
Attached a failing test that catches this behavior.
Comments and changes to this ticket
- 
         Eloy Duran July 12th, 2009 @ 12:36 PM- State changed from new to verified
- Milestone changed from 2.x to 2.3.4
 I have verified and fixed this on my branch of 2-3-stable, which Micheal will look at and merge in before 2.3.4. http://github.com/alloy/rails/commit/263dae11088b3544292a5a2b24bcda... Thanks! 
- 
         Jeremy Kemper September 11th, 2009 @ 11:04 PM- Milestone changed from 2.3.4 to 2.3.6
 [milestone:id#50064 bulk edit command] 
- 
         Repository September 13th, 2009 @ 02:33 AM- State changed from verified to resolved
 (from [c665faac09f1ff5a1b943247091cf41762bd468b]) During autosave, ignore records that already have been destroyed. [#2537 state:resolved] http://github.com/rails/rails/commit/c665faac09f1ff5a1b943247091cf4... 
- 
         Repository September 13th, 2009 @ 02:33 AM(from [65f98951ac5fe75191c6fde996b9e0f9b765414f]) During autosave, ignore records that already have been destroyed. [#2537 state:resolved] http://github.com/rails/rails/commit/65f98951ac5fe75191c6fde996b9e0... 
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 
         2537 
          autosave associations should not destroy twice when saving twice
        (from [c665faac09f1ff5a1b943247091cf41762bd468b])
During ... 2537 
          autosave associations should not destroy twice when saving twice
        (from [c665faac09f1ff5a1b943247091cf41762bd468b])
During ...
- 
         2537 
          autosave associations should not destroy twice when saving twice
        (from [65f98951ac5fe75191c6fde996b9e0f9b765414f])
During ... 2537 
          autosave associations should not destroy twice when saving twice
        (from [65f98951ac5fe75191c6fde996b9e0f9b765414f])
During ...
 Dmitry Polushkin
      Dmitry Polushkin
 Eloy Duran
      Eloy Duran
 ransom-briggs (at uiowa)
      ransom-briggs (at uiowa)