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

Calculation error when child records being deleted #4

Closed
afawcett opened this issue Sep 1, 2013 · 2 comments
Closed

Calculation error when child records being deleted #4

afawcett opened this issue Sep 1, 2013 · 2 comments

Comments

@afawcett
Copy link
Collaborator

afawcett commented Sep 1, 2013

Reported by poster on blog as follows...

"More feedback – when you delete records that are triggering the calculation (a Donation record that gets deleted, and the total donations for a contact is calculated on the contact record in a field), the calculation is not updated on the contact record. Not sure if this is missing in the program or something is wrong on my end."

@afawcett
Copy link
Collaborator Author

afawcett commented Sep 1, 2013

I've reproduced this, it occurs when the last child record is deleted, the LREngine was not receiving any aggregate query results and was not thus updating the master records. I've fixed this in my copy of the library and added new tests.

@afawcett
Copy link
Collaborator Author

afawcett commented Sep 1, 2013

Fixed in repo and version 1.4 of package (see read me for install URL).

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

No branches or pull requests

1 participant