From 4e67569b1499d35dbb0c3b1cbf674c3f3cb80dfe Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 9 Oct 2019 13:09:27 -0600 Subject: [PATCH] * Admin: Fix adding custom type status or setting type owner was not saved --- admin/inc/class.admin_customfields.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/inc/class.admin_customfields.inc.php b/admin/inc/class.admin_customfields.inc.php index 5a005064f1..5857b2555f 100644 --- a/admin/inc/class.admin_customfields.inc.php +++ b/admin/inc/class.admin_customfields.inc.php @@ -170,7 +170,11 @@ class admin_customfields unset($content['content_types']['create']); unset($content['content_types']['name']); } - // No common type change and type didn't change, do nothing + // No common type change and type didn't change, try an update to check new type statuses + elseif($this->content_type && is_array($content) && $this->content_type == $content['old_content_type']) + { + $this->update($content); + } } // Custom field deleted from nextmatch