Page MenuHomePhabricator

D16764.diff
No OneTemporary

D16764.diff

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

Mime Type
text/plain
Expires
Sat, Nov 9, 12:38 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6726712
Default Alt Text
D16764.diff (1 KB)

Event Timeline