mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
Fix a couple of column editing issues
Summary: Ref T10349. - Don't show subproject columns on "Manage Board". - Fix "Edit Column" for milestone columns (allows you to set points, but not rename). Test Plan: - Viewed "Manage Board" on a project with subprojects. - Edited a milestone column and set a point limit. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10349 Differential Revision: https://secure.phabricator.com/D15338
This commit is contained in:
parent
ee6070a984
commit
9baae00fbd
2 changed files with 9 additions and 2 deletions
|
@ -152,6 +152,11 @@ final class PhabricatorProjectBoardManageController
|
|||
foreach ($columns as $column) {
|
||||
$column_id = $column->getID();
|
||||
|
||||
$proxy = $column->getProxy();
|
||||
if ($proxy && !$proxy->isMilestone()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$detail_uri = "/project/board/{$board_id}/column/{$column_id}/";
|
||||
|
||||
$item = id(new PHUIObjectItemView())
|
||||
|
|
|
@ -81,14 +81,15 @@ final class PhabricatorProjectColumnEditController
|
|||
|
||||
$xactions = array();
|
||||
|
||||
$type_name = PhabricatorProjectColumnTransaction::TYPE_NAME;
|
||||
$type_limit = PhabricatorProjectColumnTransaction::TYPE_LIMIT;
|
||||
|
||||
if (!$column->getProxy()) {
|
||||
$type_name = PhabricatorProjectColumnTransaction::TYPE_NAME;
|
||||
$xactions[] = id(new PhabricatorProjectColumnTransaction())
|
||||
->setTransactionType($type_name)
|
||||
->setNewValue($v_name);
|
||||
}
|
||||
|
||||
$type_limit = PhabricatorProjectColumnTransaction::TYPE_LIMIT;
|
||||
$xactions[] = id(new PhabricatorProjectColumnTransaction())
|
||||
->setTransactionType($type_limit)
|
||||
->setNewValue($v_limit);
|
||||
|
@ -97,6 +98,7 @@ final class PhabricatorProjectColumnEditController
|
|||
$editor = id(new PhabricatorProjectColumnTransactionEditor())
|
||||
->setActor($viewer)
|
||||
->setContinueOnNoEffect(true)
|
||||
->setContinueOnMissingFields(true)
|
||||
->setContentSourceFromRequest($request)
|
||||
->applyTransactions($column, $xactions);
|
||||
return id(new AphrontRedirectResponse())->setURI($view_uri);
|
||||
|
|
Loading…
Reference in a new issue