Skip to content

Commit 1716861

Browse files
committed
Differential - fix bug destroying diffs
Summary: I think this was a "hacked" sub thing that never got updated when we switched to a real editor? I am not 100% sure how these methods are used, so please let me know if I should expand my test plan. Fixes T6659. Test Plan: made a diff from the web ui, looked up the phid from mysql, ran bin/remove destroy <phid>, and it worked! Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6659 Differential Revision: https://secure.phabricator.com/D10911
1 parent e872f79 commit 1716861

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/applications/differential/storage/DifferentialDiff.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -421,25 +421,17 @@ public function getAvailableBuildVariables() {
421421

422422

423423
public function getApplicationTransactionEditor() {
424-
if (!$this->getRevisionID()) {
425-
return null;
426-
}
427-
return $this->getRevision()->getApplicationTransactionEditor();
424+
425+
return new DifferentialDiffEditor();
428426
}
429427

430428

431429
public function getApplicationTransactionObject() {
432-
if (!$this->getRevisionID()) {
433-
return null;
434-
}
435-
return $this->getRevision();
430+
return $this;
436431
}
437432

438433
public function getApplicationTransactionTemplate() {
439-
if (!$this->getRevisionID()) {
440-
return null;
441-
}
442-
return $this->getRevision()->getApplicationTransactionTemplate();
434+
return new DifferentialDiffTransaction();
443435
}
444436

445437

0 commit comments

Comments
 (0)