@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3/**
4 * Implements not allowing to set a value for comparison in a boolean Herald
5 * rule condition (e.g. for "Assignee | does not exist") or in a boolean Herald
6 * rule action (e.g. "Do nothing" or "Require secure mail").
7 */
8final class HeraldEmptyFieldValue
9 extends HeraldFieldValue {
10
11 public function getFieldValueKey() {
12 return 'none';
13 }
14
15 public function getControlType() {
16 return self::CONTROL_NONE;
17 }
18
19 public function renderFieldValue($value) {
20 return null;
21 }
22
23 public function renderEditorValue($value) {
24 return null;
25 }
26
27}