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

dev/core#2583 - Fix fatal error on membership renewal #20212

Merged
merged 1 commit into from
May 3, 2021

Conversation

jitendrapurohit
Copy link
Contributor

@jitendrapurohit jitendrapurohit commented May 3, 2021

Overview

Backend Membership Renewal returns a fatal error when min fee is empty

Gitlab - https://lab.civicrm.org/dev/core/-/issues/2583

Before

To replicate -

  • Create Membership Type with no amount value.
  • Create a membership on a contact.
  • Renew from the Membership tab.

image

  • Error message when the link is opened in a new window -

image

After

Fixed.

Technical Details

Return early if the amount is NULL as done in ::format().

Comments

@eileenmcnaughton

@civibot
Copy link

civibot bot commented May 3, 2021

(Standard links)

@civibot civibot bot added the 5.37 label May 3, 2021
@seamuslee001
Copy link
Contributor

@demeritcowboy also ping you here, I think this is fine here

@eileenmcnaughton
Copy link
Contributor

@jitendrapurohit I was hoping to do the opposite - ie not pass in NULL to the format function - although I'd be fine handling null in that funciton in a deprecated but non-fatal way

@jitendrapurohit
Copy link
Contributor Author

ok - i think I misunderstood your comment. The original fix was in MembershipRenewal.php. Have updated it now.

@eileenmcnaughton
Copy link
Contributor

thanks @jitendrapurohit - perfect!

@eileenmcnaughton eileenmcnaughton merged commit c0acba3 into civicrm:5.37 May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants