monica icon indicating copy to clipboard operation
monica copied to clipboard

fix: allow deletion of contact information types without refreshing page

Open Otanga-Otieno opened this issue 6 months ago • 1 comments

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

Otanga-Otieno avatar Aug 22 '24 10:08 Otanga-Otieno