Summary:
Cannot delete template associated to internal page link
Detailed Description:
To duplicate issue:
1. Add new active template
2. Add new content page that uses newly created template and submit form.
3. From dashboard click on newly created content to edit it and change type to
"internal page link" and submit form.
4. Return to template view and delete newly created template.
Expected Result:
Template is deleted.
Actual Result:
Template says it is in use and cannot be deleted.
Discussion:
The cms_content table does not remove its template_id when you change the page
type to be something other than a content page. If this is intentional
functionality, there is no way to determine which page is associated with the
template from the admin from any view that I have found. Makes it difficult when
the delete template screen says "template exists on a page" and the Page view
says that the template is not in use. Even clicking on the culprit page doesn't
give any indication that it is associated to a template.