Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18112623
D18923.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
986 B
Referenced Files
None
Subscribers
None
D18923.diff
View Options
diff --git a/src/applications/transactions/bulk/PhabricatorBulkEngine.php b/src/applications/transactions/bulk/PhabricatorBulkEngine.php
--- a/src/applications/transactions/bulk/PhabricatorBulkEngine.php
+++ b/src/applications/transactions/bulk/PhabricatorBulkEngine.php
@@ -303,6 +303,7 @@
$spec = array();
$option_groups = igroup($edit_map, 'group');
+ $default_value = null;
foreach ($groups as $group_key => $group) {
$options = idx($option_groups, $group_key, array());
if (!$options) {
@@ -315,6 +316,10 @@
'key' => $option['xaction'],
'label' => $option['label'],
);
+
+ if ($default_value === null) {
+ $default_value = $option['xaction'];
+ }
}
$spec[] = array(
@@ -332,6 +337,7 @@
'inputNodeID' => $input_id,
'edits' => $edit_map,
'optgroups' => array(
+ 'value' => $default_value,
'groups' => $spec,
),
));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 13, 7:11 PM (5 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
9233023
Default Alt Text
D18923.diff (986 B)
Attached To
Mode
D18923: Set an explicit default value for the bulk action control
Attached
Detach File
Event Timeline
Log In to Comment