diff --git a/src/applications/phortune/editor/PhortuneMerchantEditEngine.php b/src/applications/phortune/editor/PhortuneMerchantEditEngine.php index 1c68fe67c9..8c2356e6fe 100644 --- a/src/applications/phortune/editor/PhortuneMerchantEditEngine.php +++ b/src/applications/phortune/editor/PhortuneMerchantEditEngine.php @@ -112,6 +112,7 @@ final class PhortuneMerchantEditEngine ->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 index 6ff84da870..a0b63e2da1 100644 --- a/src/applications/transactions/editfield/PhabricatorEditField.php +++ b/src/applications/transactions/editfield/PhabricatorEditField.php @@ -401,8 +401,15 @@ abstract class PhabricatorEditField extends Phobject { 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; }