Remove custom statuses for the type when you remove a custom type

This commit is contained in:
Nathan Gray 2015-12-02 21:40:05 +00:00
parent 12962b77b4
commit edffbeea99

View File

@ -586,6 +586,7 @@ class customfields
function delete_content_type(&$content) function delete_content_type(&$content)
{ {
unset($this->content_types[$content['content_types']['types']]); unset($this->content_types[$content['content_types']['types']]);
unset($this->status[$content['content_types']['types']]);
// save changes to repository // save changes to repository
$this->save_repository(); $this->save_repository();
} }