From d06e80056ac957cb67edeeed1da11fca7df64476 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Tue, 19 Sep 2017 08:05:16 -0400 Subject: [PATCH] Clear descriptions when deleting custom field --- admin/custom_fields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/custom_fields.php b/admin/custom_fields.php index 49f7044f..04917840 100755 --- a/admin/custom_fields.php +++ b/admin/custom_fields.php @@ -1031,7 +1031,7 @@ function remove_cf() $id = intval( hesk_GET('id') ) or hesk_error($hesklang['cf_e_id']); // Reset the custom field - hesk_dbQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."custom_fields` SET `use`='0', `place`='0', `type`='text', `req`='0', `category`=NULL, `name`='', `value`=NULL, `order`=1000 WHERE `id`={$id}"); + hesk_dbQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."custom_fields` SET `use`='0', `place`='0', `type`='text', `req`='0', `category`=NULL, `name`='', `mfh_description`=NULL, `value`=NULL, `order`=1000 WHERE `id`={$id}"); // Were we successful? if ( hesk_dbAffectedRows() == 1 )