Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15331998
D17634.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
D17634.diff
View Options
diff --git a/src/applications/differential/xaction/DifferentialRevisionReviewTransaction.php b/src/applications/differential/xaction/DifferentialRevisionReviewTransaction.php
--- a/src/applications/differential/xaction/DifferentialRevisionReviewTransaction.php
+++ b/src/applications/differential/xaction/DifferentialRevisionReviewTransaction.php
@@ -183,8 +183,19 @@
// In all cases, you affect yourself.
$map[$viewer->getPHID()] = $status;
- // If the user has submitted a specific list of reviewers to act as (by
- // unchecking some checkboxes under "Accept"), only affect those reviewers.
+ // If we're applying an "accept the defaults" transaction, and this
+ // transaction type uses checkboxes, replace the value with the list of
+ // defaults.
+ if (!is_array($value)) {
+ list($options, $default) = $this->getActionOptions($viewer, $revision);
+ if ($options) {
+ $value = $default;
+ }
+ }
+
+ // If we have a specific list of reviewers to act on, usually because the
+ // user has submitted a specific list of reviewers to act as by
+ // unchecking some checkboxes under "Accept", only affect those reviewers.
if (is_array($value)) {
$map = array_select_keys($map, $value);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 8, 3:54 PM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7224768
Default Alt Text
D17634.diff (1 KB)
Attached To
Mode
D17634: Fix scope of "Accept" when you don't check all the "Force Accept" boxes
Attached
Detach File
Event Timeline
Log In to Comment