From cb228ed4e39fae38859c7cf5c8c6c1326c1851a4 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 30 Dec 2012 13:44:48 -0800 Subject: [PATCH] Fix write to undefined property $_hunks Summary: Some time long in the past, this was renamed to unsavedHunks. Fixes T2249. Test Plan: Ran `destroy_revision.php D20`, got a successful destruction. Reviewers: btrahan, vrana Reviewed By: btrahan CC: aran Maniphest Tasks: T2249 Differential Revision: https://secure.phabricator.com/D4304 --- src/applications/differential/storage/DifferentialChangeset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/differential/storage/DifferentialChangeset.php b/src/applications/differential/storage/DifferentialChangeset.php index 3fe45fea95..bcb6411fef 100644 --- a/src/applications/differential/storage/DifferentialChangeset.php +++ b/src/applications/differential/storage/DifferentialChangeset.php @@ -88,7 +88,7 @@ final class DifferentialChangeset extends DifferentialDAO { foreach ($this->loadHunks() as $hunk) { $hunk->delete(); } - $this->_hunks = array(); + $this->unsavedHunks = array(); queryfx( $this->establishConnection('w'),