Skip to content

Commit

Permalink
Bugfix: Fallback for data from db
Browse files Browse the repository at this point in the history
  • Loading branch information
eynimeni authored and ibernhardf committed Nov 19, 2024
1 parent c15b947 commit e2d9bfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ 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' => $record->pp_orderid,
'orderid' => $orderid,
];
writer::with_context($context)->export_data(
$subcontext,
Expand Down

0 comments on commit e2d9bfb

Please sign in to comment.