mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 10:12:41 +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:
parent
23d8f000f7
commit
cd2215fd4a
1 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,10 @@ final class PhabricatorProjectColumnNameTransaction
|
||||||
if ($this->isEmptyTextTransaction($object->getName(), $xactions)) {
|
if ($this->isEmptyTextTransaction($object->getName(), $xactions)) {
|
||||||
// The default "Backlog" column is allowed to be unnamed, which
|
// The default "Backlog" column is allowed to be unnamed, which
|
||||||
// means we use the default name.
|
// 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(
|
$errors[] = $this->newRequiredError(
|
||||||
pht('Columns must have a name.'));
|
pht('Columns must have a name.'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue