Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14087886
D11000.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11000.diff
View Options
diff --git a/src/applications/project/controller/PhabricatorProjectBoardViewController.php b/src/applications/project/controller/PhabricatorProjectBoardViewController.php
--- a/src/applications/project/controller/PhabricatorProjectBoardViewController.php
+++ b/src/applications/project/controller/PhabricatorProjectBoardViewController.php
@@ -239,7 +239,7 @@
$panel->addClass('project-panel-hidden');
}
- $column_menu = $this->buildColumnMenu($project, $column);
+ $column_menu = $this->buildColumnMenu($project, $column, $column_tasks);
$panel->addHeaderAction($column_menu);
$tag_id = celerity_generate_unique_node_id();
@@ -533,7 +533,8 @@
private function buildColumnMenu(
PhabricatorProject $project,
- PhabricatorProjectColumn $column) {
+ PhabricatorProjectColumn $column,
+ $column_tasks) {
$request = $this->getRequest();
$viewer = $request->getUser();
@@ -587,6 +588,20 @@
->setWorkflow(true);
}
+ $task_ids = mpull($column_tasks, 'getID');
+
+ if ($task_ids) {
+ $batch_edit_uri = id(new PhabricatorManiphestApplication())
+ ->getApplicationURI('/batch/?batch[]='.implode('&batch[]=', $task_ids));
+
+ $column_items[] = id(new PhabricatorActionView())
+ ->setIcon('fa-pencil')
+ ->setName(pht('Batch Edit Tasks'))
+ ->setHref($batch_edit_uri)
+ ->setDisabled(!$can_edit)
+ ->setWorkflow(!$can_edit);
+ }
+
$column_menu = id(new PhabricatorActionListView())
->setUser($viewer);
foreach ($column_items as $item) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 12:29 AM (21 h, 56 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6784382
Default Alt Text
D11000.diff (1 KB)
Attached To
Mode
D11000: simple batch edit for workboard columns
Attached
Detach File
Event Timeline
Log In to Comment