From edffbeea99a7ea3702c20e6c3ee9420fe270c87f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 2 Dec 2015 21:40:05 +0000 Subject: [PATCH] Remove custom statuses for the type when you remove a custom type --- admin/inc/class.customfields.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/inc/class.customfields.inc.php b/admin/inc/class.customfields.inc.php index 0e468c1c44..da6397b39b 100644 --- a/admin/inc/class.customfields.inc.php +++ b/admin/inc/class.customfields.inc.php @@ -586,6 +586,7 @@ class customfields function delete_content_type(&$content) { unset($this->content_types[$content['content_types']['types']]); + unset($this->status[$content['content_types']['types']]); // save changes to repository $this->save_repository(); }