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

CRM-21647 - Fatal error on deleting any contribution record #11500

Merged
merged 1 commit into from
Jan 11, 2018

Conversation

jitendrapurohit
Copy link
Contributor

@jitendrapurohit jitendrapurohit commented Jan 10, 2018

Overview

Fix fatal error on delete contribution form.

Before

Fatal error is displayed on Delete Contribution form.

image

After

Fixed. User is able to delete any contribution record.

Technical Details

It seems it was rendering the whole form where it needs to only display the delete button. This change forces the buildForm() function to return much before in case of a delete action.

Comments

The change of addField() was done recently in #10841


@eileenmcnaughton
Copy link
Contributor

test this please

1 similar comment
@eileenmcnaughton
Copy link
Contributor

test this please

@eileenmcnaughton
Copy link
Contributor

I replicated this bug & agree this fixes the problem

@seamuslee001
Copy link
Contributor

test this please

1 similar comment
@seamuslee001
Copy link
Contributor

test this please

@yashodha
Copy link
Contributor

looks good!

@yashodha yashodha merged commit a2ffc70 into civicrm:master Jan 11, 2018
@jitendrapurohit jitendrapurohit deleted the CRM-21647 branch January 11, 2018 07:32
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.

5 participants