Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waitlist #25370

Merged
merged 1 commit into from
Jan 19, 2023
Merged

Waitlist #25370

merged 1 commit into from
Jan 19, 2023

Conversation

pradpnayak
Copy link
Contributor

Overview

https://lab.civicrm.org/dev/core/-/issues/4087

After

Email should display confirmation text

Before

Waitlist message displayed in email

@civibot
Copy link

civibot bot commented Jan 18, 2023

(Standard links)

@civibot civibot bot added the master label Jan 18, 2023
@pradpnayak pradpnayak changed the base branch from master to 5.57 January 18, 2023 14:46
@civibot civibot bot added 5.57 and removed master labels Jan 18, 2023
@eileenmcnaughton
Copy link
Contributor

Thanks @pradpnayak - can you switch this to the rc branch? 5.58

I'm looking at the original code (before my change to remove CRM_Utils_Array::value which caused this) & it hurts my brain

     $waitStatus = CRM_Event_PseudoConstant::participantStatus(NULL, "class = 'Waiting'");
    if ($waitingStatus = CRM_Utils_Array::value($params['status_id'], $waitStatus)) {
      $this->assign('isOnWaitlist', TRUE);
    }

I guess CRM_Event_PseudoConstant::participantStatus is one of those awful functions that returns an array or a status & I mistook that it would return a status but it returns an array

@pradpnayak pradpnayak changed the base branch from 5.57 to 5.58 January 19, 2023 17:23
@civibot civibot bot added 5.58 and removed 5.57 labels Jan 19, 2023
@pradpnayak
Copy link
Contributor Author

Hi @eileenmcnaughton

I have switched to 5.58 branch.

@demeritcowboy
Copy link
Contributor

I actually get a "type error" before, not the waitlist message, but regardless this fixes it and seems right.

Test fails unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants