mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Allow setting of "required":false in CustomFields
Summary: Fixes T6265, allows you to pass required:false as a parameter. Test Plan: Add required:false to a field, no longer see "Required" Reviewers: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6265 Differential Revision: https://secure.phabricator.com/D10659
This commit is contained in:
parent
89a6ed98e7
commit
91549bb81d
1 changed files with 4 additions and 2 deletions
|
@ -107,8 +107,10 @@ abstract class PhabricatorStandardCustomField
|
|||
$this->setCaption($value);
|
||||
break;
|
||||
case 'required':
|
||||
$this->setRequired($value);
|
||||
$this->setFieldError(true);
|
||||
if ($value) {
|
||||
$this->setRequired($value);
|
||||
$this->setFieldError(true);
|
||||
}
|
||||
break;
|
||||
case 'default':
|
||||
$this->setFieldValue($value);
|
||||
|
|
Loading…
Reference in a new issue