Skip to content

Commit

Permalink
Bugfix: Second fix for fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibernhardf committed Nov 19, 2024
1 parent e2d9bfb commit 1737d03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ public static function export_payment_data(\context $context, array $subcontext,

$subcontext[] = get_string('gatewayname', 'paygw_mpay24');
$record = $DB->get_record('paygw_mpay24', ['paymentid' => $payment->id]);
$orderid = $record->pp_orderid ?? $record->pu_orderid ?? 0;

$data = (object) [
'orderid' => $orderid,
'orderid' => $record->mpay24_orderid ?? 0,
];
writer::with_context($context)->export_data(
$subcontext,
Expand Down

0 comments on commit 1737d03

Please sign in to comment.