1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-03-20 16:20:09 +01:00

Fix an issue with extended policy checks and @mentions

Summary: Ref T8463.

Test Plan:
  - Created a new revision via web UI with a username `@mention` in the summary and no repository.
  - Prior to patch, hit a "not attached" error.
  - After patch, no error.
  - Created a new web UI revision, as above, but with a repository; saw repository work fine.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T8463

Differential Revision: https://secure.phabricator.com/D13205
This commit is contained in:
epriestley 2015-06-08 10:07:05 -07:00
parent 9a9df74ddb
commit 2e0f189950

View file

@ -65,6 +65,7 @@ final class DifferentialRevision extends DifferentialDAO
->setViewPolicy($view_policy)
->setAuthorPHID($actor->getPHID())
->attachRelationships(array())
->attachRepository(null)
->setStatus(ArcanistDifferentialRevisionStatus::NEEDS_REVIEW);
}