From be4f66a5a329b6f0e30b5f19d1902676b5ae85cb Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 8 Dec 2016 11:22:57 -0800 Subject: [PATCH] In Remarkup, render archived Herald rules with strikethrough for consistency Summary: Fixes T11969. Test Plan: {T11969} Reviewers: chad Reviewed By: chad Maniphest Tasks: T11969 Differential Revision: https://secure.phabricator.com/D17010 --- src/applications/herald/phid/HeraldRulePHIDType.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/applications/herald/phid/HeraldRulePHIDType.php b/src/applications/herald/phid/HeraldRulePHIDType.php index 34c6d80c5f..a70f89b406 100644 --- a/src/applications/herald/phid/HeraldRulePHIDType.php +++ b/src/applications/herald/phid/HeraldRulePHIDType.php @@ -38,6 +38,10 @@ final class HeraldRulePHIDType extends PhabricatorPHIDType { $handle->setName($monogram); $handle->setFullName("{$monogram} {$name}"); $handle->setURI("/{$monogram}"); + + if ($rule->getIsDisabled()) { + $handle->setStatus(PhabricatorObjectHandle::STATUS_CLOSED); + } } }