Files
danbooru/test/unit
evazion acd49be4cc Fix #3419: Deleting a post doesn't clear parent's "parent" status.
Bug: when deleting a child post and the "Move favorites to parent?" option is
set, the parent's has_active_children flag is not cleared.

`give_favorites_to_parent` moves the votes, and moving the votes has the
side effect of reloading the post (to get the new score). But reloading
the post wipes out the is_deleted_changed? flag, which is used by `update_parent_on_save`.

Fix: update the `is_deleted` flag *before* moving favorites, so that the
`update_parent_on_save` callback runs before `give_favorite_to_parent` runs.
2017-12-05 19:35:15 -06:00
..
2015-08-18 17:40:53 -07:00
2014-04-16 17:43:34 -07:00
2017-11-26 15:37:51 -06:00
2017-11-20 16:30:07 -08:00
2017-11-20 16:30:07 -08:00
2017-11-20 16:30:07 -08:00
2017-11-20 16:30:07 -08:00
2017-11-20 16:30:07 -08:00
2015-02-09 19:10:47 -08:00
2017-11-20 16:30:07 -08:00
2014-10-22 17:22:36 -07:00
2017-11-20 16:30:07 -08:00
2017-11-20 16:30:07 -08:00
2017-04-04 12:39:17 -07:00
2017-11-20 16:30:07 -08:00
2017-11-20 16:30:07 -08:00
2017-11-20 16:30:07 -08:00
2017-11-20 16:30:07 -08:00
2017-11-20 16:30:07 -08:00
2017-11-15 16:58:58 -06:00
2017-07-25 00:36:18 -05:00
2017-11-20 16:30:07 -08:00