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:
parent
5494df7228
commit
ea4e33261e
1 changed files with 1 additions and 1 deletions
|
@ -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. '.
|
||||
|
|
Loading…
Reference in a new issue