Skip to content

Commit

Permalink
Merge pull request #206 from nysenate/hotfix--cancel-subscriptions-af…
Browse files Browse the repository at this point in the history
…ter-dashboard-unfollow

Ensure bill widget form recognizes canceled subscription status
  • Loading branch information
kzalewski committed Jun 22, 2024
2 parents 7869658 + 5117f0d commit 4d45870
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ public function addSubscriptionForm(&$form, FormStateInterface $form_state, $nod
$form_state->addBuildInfo('tid', $tid);

// Check if already subscribed.
if ($this->billHelper->findSubscription($ref_node)) {
$subscription = $this->billHelper->findSubscription($ref_node);
if ($subscription && !$subscription->getCanceled()) {
$nys_bill_subscribe = [
'#type' => 'markup',
'#markup' => '<hr /><div class="subscribe_result">You Are Subscribed.</div>',
Expand Down

0 comments on commit 4d45870

Please sign in to comment.