From 8f52400aeac755223dcf30b8448a81acbbb8e88c Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sun, 20 Aug 2017 11:47:35 -0400 Subject: [PATCH] Change column name --- api/DataAccess/Categories/CategoryGateway.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/DataAccess/Categories/CategoryGateway.php b/api/DataAccess/Categories/CategoryGateway.php index f72847c9..bf48f5b4 100644 --- a/api/DataAccess/Categories/CategoryGateway.php +++ b/api/DataAccess/Categories/CategoryGateway.php @@ -33,7 +33,7 @@ class CategoryGateway extends CommonDao { $category->displayBorder = $row['display_border_outline'] === '1'; $category->priority = intval($row['priority']); $category->manager = intval($row['manager']) == 0 ? NULL : intval($row['manager']); - $category->description = $row['description']; + $category->description = $row['mfh_description']; $results[$category->id] = $category; } @@ -55,7 +55,7 @@ class CategoryGateway extends CommonDao { $sql = "INSERT INTO `" . hesk_dbEscape($heskSettings['db_pfix']) . "categories` (`name`, `cat_order`, `autoassign`, `type`, `priority`, `manager`, `background_color`, `usage`, - `foreground_color`, `display_border_outline`, `description`) + `foreground_color`, `display_border_outline`, `mfh_description`) VALUES ('" . hesk_dbEscape($category->name) . "', " . intval($newOrder['cat_order']) . ", '" . $category->autoAssign ? 1 : 0 . "', '" . intval($category->type) . "', '" . intval($category->priority) . "', " . $category->manager === null ? 'NULL' : intval($category->manager) . ",