monica
monica copied to clipboard
fix: allow deletion of contact information types without refreshing page
Fixes Issue #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