@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

Custom fields: Render 'required' for tokenizer fields

Summary: When building a tokenizer-based edit control for a custom field (e.g. a datasource type), preserve a field validation error whilst building edit controls.

Test Plan:
- Create custom datasource field, set it to required
- Observe that 'Required' does not appear next to control
- Apply patch
- Observe 'Required' appears next to control

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D17592

authored by

Daniel Stone and committed by
fooishbar
1c5503cb 4d29d8e2

+1
+1
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldTokenizer.php
··· 14 14 ->setName($this->getFieldKey()) 15 15 ->setDatasource($this->getDatasource()) 16 16 ->setCaption($this->getCaption()) 17 + ->setError($this->getFieldError()) 17 18 ->setValue(nonempty($value, array())); 18 19 19 20 $limit = $this->getFieldConfigValue('limit');