Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13971136
D16764.id40378.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
D16764.id40378.diff
View Options
diff --git a/src/applications/phortune/editor/PhortuneMerchantEditEngine.php b/src/applications/phortune/editor/PhortuneMerchantEditEngine.php
--- a/src/applications/phortune/editor/PhortuneMerchantEditEngine.php
+++ b/src/applications/phortune/editor/PhortuneMerchantEditEngine.php
@@ -112,6 +112,7 @@
->setDescription(pht('Initial merchant members.'))
->setConduitDescription(pht('Set merchant members.'))
->setConduitTypeDescription(pht('New list of members.'))
+ ->setInitialValue($object->getMemberPHIDs())
->setValue($member_phids),
);
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
@@ -401,8 +401,15 @@
public function setValue($value) {
$this->hasValue = true;
- $this->initialValue = $value;
$this->value = $value;
+
+ // If we don't have an initial value set yet, use the value as the
+ // initial value.
+ $initial_value = $this->getInitialValue();
+ if ($initial_value === null) {
+ $this->initialValue = $value;
+ }
+
return $this;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 18 2024, 11:50 AM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6726712
Default Alt Text
D16764.id40378.diff (1 KB)
Attached To
Mode
D16764: Improve some setInitialValue() behavior for PhortuneMerchants
Attached
Detach File
Event Timeline
Log In to Comment