Page MenuHomePhabricator

D18923.diff
No OneTemporary

D18923.diff

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

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)

Event Timeline