When creating a new record from the search dialog, the callback destroys the search dialog before the form dialog is destroyed.
When creating a new record from the search dialog, the callback destroys the search dialog before the form dialog is destroyed.