Skip to content

Commit

Permalink
Reset the phases so they don't pile up.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed May 3, 2024
1 parent 62d286c commit ad180d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ public static function new_subscription_from_rcp_gateway( $gateway ) {
}

// Add phases to subscription.
$pronamic_subscription->set_phases( [] );

$subscription->add_phase( $initial_phase );
$subscription->add_phase( $regular_phase );

Expand Down

0 comments on commit ad180d4

Please sign in to comment.