Skip to content

Commit

Permalink
Fix duplicate _pronamic_payment_subscription_id meta due to unprefi…
Browse files Browse the repository at this point in the history
…xed meta key.
  • Loading branch information
rvdsteege committed Jun 28, 2023
1 parent 7199613 commit 8da8177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Payments/PaymentsDataStoreCPT.php
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ private function update_post_meta( $payment ) {
// Subscriptions.
$meta_key = $this->get_meta_key( 'subscription_id' );

$subscriptions_ids = \get_post_meta( $id, 'subscription_id' );
$subscriptions_ids = \get_post_meta( $id, $meta_key );

foreach ( $payment->get_subscriptions() as $subscription ) {
$subscription_id = $subscription->get_id();
Expand Down

0 comments on commit 8da8177

Please sign in to comment.