1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-15 10:00:55 +01:00

(stable) Fix an inverted condition for the "Reopen Revision" action

Summary: Ref T2543. I converted this condition the wrong way, missing a `!`. I'll cherry-pick this to `stable`.

Test Plan: No more "Reopen Revision" action available on open revisions.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T2543

Differential Revision: https://secure.phabricator.com/D18399
This commit is contained in:
epriestley 2017-08-11 09:47:30 -07:00
parent 5494df7228
commit ea4e33261e

View file

@ -39,7 +39,7 @@ final class DifferentialRevisionReopenTransaction
}
protected function validateAction($object, PhabricatorUser $viewer) {
if ($object->isPublished()) {
if (!$object->isPublished()) {
throw new Exception(
pht(
'You can not reopen this revision because it is not closed. '.