Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/editor/PhortuneMerchantEditor.php
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
pht('Merchant name is required.'), | pht('Merchant name is required.'), | ||||
nonempty(last($xactions), null)); | nonempty(last($xactions), null)); | ||||
$error->setIsMissingFieldError(true); | $error->setIsMissingFieldError(true); | ||||
$errors[] = $error; | $errors[] = $error; | ||||
} | } | ||||
break; | break; | ||||
case PhortuneMerchantTransaction::TYPE_INVOICEEMAIL: | case PhortuneMerchantTransaction::TYPE_INVOICEEMAIL: | ||||
$new_email = null; | |||||
foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
switch ($xaction->getTransactionType()) { | switch ($xaction->getTransactionType()) { | ||||
case PhortuneMerchantTransaction::TYPE_INVOICEEMAIL: | case PhortuneMerchantTransaction::TYPE_INVOICEEMAIL: | ||||
$new_email = $xaction->getNewValue(); | $new_email = $xaction->getNewValue(); | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
if (strlen($new_email)) { | if (strlen($new_email)) { | ||||
Show All 20 Lines |