Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Commit

Permalink
fix(logs): allow payments to be logged manually regardless of the ori…
Browse files Browse the repository at this point in the history
…ginal payment status

Payments can now be logged manually for failed and refunded transactions
  • Loading branch information
hypeJunction committed Jun 23, 2017
1 parent 032e40e commit fad75b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/hypeJunction/Payments/Menus.php
Expand Up @@ -28,7 +28,7 @@ public static function getTransactionMenuItems(Transaction $transaction) {
]);
}

if ($status !== TransactionInterface::STATUS_FAILED && $status !== TransactionInterface::STATUS_REFUNDED && $transaction->canEdit()) {
if ($transaction->canEdit()) {
$items[] = ElggMenuItem::factory([
'name' => 'log_payment',
'text' => elgg_echo('payments:transaction:log_payment'),
Expand Down

0 comments on commit fad75b7

Please sign in to comment.