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

fix: allow deletion of contact information types without refreshing page #7377

Merged

Conversation

Otanga-Otieno
Copy link
Contributor

@Otanga-Otieno Otanga-Otieno commented Aug 22, 2024

Close #7214

The object returned by Model::create doesn't include database columns that are filled by default and not passed to the create function.
This causes the 'can_be_deleted' property in our ContactInformationType object to always be null after the record has been created.
Calling the refresh function on the instance re-retrieves its data from the db, fixing the issue

@CLAassistant
Copy link

CLAassistant commented Aug 22, 2024

CLA assistant check
All committers have signed the CLA.

@asbiin asbiin merged commit b1802b4 into monicahq:main Oct 6, 2024
18 checks passed
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.

contact information types not directly deletable litte bug
3 participants