1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 07:20:57 +01:00

Don't warn that workboard columns need a name when editing milestone columns

Summary: See <https://discourse.phabricator-community.org/t/columns-must-have-a-name-while-editong-point-limit-on-milestone-column/2650>. This check doesn't make sense for proxy columns, including milestone columns.

Test Plan: Added a point limit to a milestone column.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20448
This commit is contained in:
epriestley 2019-04-18 05:30:07 -07:00
parent 23d8f000f7
commit cd2215fd4a

View file

@ -41,7 +41,10 @@ final class PhabricatorProjectColumnNameTransaction
if ($this->isEmptyTextTransaction($object->getName(), $xactions)) {
// The default "Backlog" column is allowed to be unnamed, which
// means we use the default name.
if (!$object->isDefaultColumn()) {
// Proxy columns can't have a name, so don't raise an error here.
if (!$object->isDefaultColumn() && !$object->getProxy()) {
$errors[] = $this->newRequiredError(
pht('Columns must have a name.'));
}