Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14895384
D21176.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
781 B
Referenced Files
None
Subscribers
None
D21176.diff
View Options
diff --git a/src/applications/transactions/editengine/PhabricatorEditEngine.php b/src/applications/transactions/editengine/PhabricatorEditEngine.php
--- a/src/applications/transactions/editengine/PhabricatorEditEngine.php
+++ b/src/applications/transactions/editengine/PhabricatorEditEngine.php
@@ -2204,6 +2204,16 @@
$transactions_key,
$key));
}
+
+ if (!array_key_exists('value', $xaction)) {
+ throw new Exception(
+ pht(
+ 'Parameter "%s" must contain a list of transaction descriptions, '.
+ 'but item with key "%s" is missing a "value" field. Each '.
+ 'transaction must have a value field.',
+ $transactions_key,
+ $key));
+ }
}
return $xactions;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 10, 9:07 AM (2 h, 12 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7116462
Default Alt Text
D21176.diff (781 B)
Attached To
Mode
D21176: Make omitting "value" from a transaction description an explicit error
Attached
Detach File
Event Timeline
Log In to Comment