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

Update birth ref index and death ref index when updating person #252

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

DavidMStraub
Copy link
Member

Adding a birth or death event to an existing person in Gramps.js, I noticed that thebirth_ref_index and death_ref_index on the Person object are not set correctly - I had assumed that this was done automatically when committing the change. However, it turned out that in Gramps this needs to be done "manually" by calling the method set_birth_death_index. This PR adds this call to the update_object utility function that is used in the PUT endpoints. A unit test is added for this case.

@DavidMStraub DavidMStraub merged commit ffd68b8 into gramps-project:master Dec 16, 2021
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

Successfully merging this pull request may close these issues.

1 participant