diff --git a/src/applications/phortune/editor/PhortuneMerchantEditor.php b/src/applications/phortune/editor/PhortuneMerchantEditor.php index e2db3688e7..53fc7c94f2 100644 --- a/src/applications/phortune/editor/PhortuneMerchantEditor.php +++ b/src/applications/phortune/editor/PhortuneMerchantEditor.php @@ -134,6 +134,7 @@ final class PhortuneMerchantEditor } break; case PhortuneMerchantTransaction::TYPE_INVOICEEMAIL: + $new_email = null; foreach ($xactions as $xaction) { switch ($xaction->getTransactionType()) { case PhortuneMerchantTransaction::TYPE_INVOICEEMAIL: diff --git a/src/applications/phortune/storage/PhortuneMerchant.php b/src/applications/phortune/storage/PhortuneMerchant.php index a57e5bd69e..69675c2ebc 100644 --- a/src/applications/phortune/storage/PhortuneMerchant.php +++ b/src/applications/phortune/storage/PhortuneMerchant.php @@ -19,7 +19,10 @@ final class PhortuneMerchant extends PhortuneDAO public static function initializeNewMerchant(PhabricatorUser $actor) { return id(new PhortuneMerchant()) ->setViewPolicy(PhabricatorPolicies::getMostOpenPolicy()) - ->attachMemberPHIDs(array()); + ->attachMemberPHIDs(array()) + ->setContactInfo('') + ->setInvoiceEmail('') + ->setInvoiceFooter(''); } protected function getConfiguration() {