Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13990818
D14571.id.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
D14571.id.diff
View Options
diff --git a/src/applications/transactions/editfield/PhabricatorEditField.php b/src/applications/transactions/editfield/PhabricatorEditField.php
--- a/src/applications/transactions/editfield/PhabricatorEditField.php
+++ b/src/applications/transactions/editfield/PhabricatorEditField.php
@@ -320,7 +320,13 @@
}
protected function getValueExistsInSubmit(AphrontRequest $request, $key) {
- return $this->getHTTPParameterType()->getExists($request, $key);
+ $type = $this->getHTTPParameterType();
+
+ if ($type) {
+ return $type->getExists($request, $key);
+ }
+
+ return false;
}
protected function getValueFromSubmit(AphrontRequest $request, $key) {
@@ -328,7 +334,13 @@
}
protected function getDefaultValue() {
- return $this->getHTTPParameterType()->getDefaultValue();
+ $type = $this->getHTTPParameterType();
+
+ if ($type) {
+ return $type->getDefaultValue();
+ }
+
+ return null;
}
final public function getHTTPParameterType() {
diff --git a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
--- a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
+++ b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
@@ -1888,7 +1888,7 @@
}
foreach ($no_effect as $key => $xaction) {
- if ($xaction->getComment()) {
+ if ($xaction->hasComment()) {
$xaction->setTransactionType($type_comment);
$xaction->setOldValue(null);
$xaction->setNewValue(null);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 23, 6:26 AM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6720018
Default Alt Text
D14571.id.diff (1 KB)
Attached To
Mode
D14571: Fix handling of implicit comment transaction in paste creation
Attached
Detach File
Event Timeline
Log In to Comment