From f10fd0cbc0744fbf71129fc19b49384d605cad4a Mon Sep 17 00:00:00 2001 From: Jon Bendtsen Date: Wed, 13 Mar 2024 23:52:18 +0100 Subject: [PATCH] we do not use these fields which are null anyway --- htdocs/societe/class/api_thirdparties.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index 5c08bc0d750..ca8bbf055f2 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -1102,7 +1102,7 @@ class Thirdparties extends DolibarrApi * We select all the records that match the socid */ - $sql = "SELECT rowid, fk_action, fk_action as event, fk_soc, fk_soc as socid, fk_contact, fk_contact as target, fk_user, email, threshold, context, type, datec, tms"; + $sql = "SELECT rowid, fk_action, fk_action as event, fk_soc, fk_soc as socid, fk_contact, fk_contact as target, type, datec, tms"; $sql .= " FROM ".MAIN_DB_PREFIX."notify_def"; if ($id) { $sql .= " WHERE fk_soc = ".((int) $id); @@ -1128,7 +1128,7 @@ class Thirdparties extends DolibarrApi throw new RestException(404, 'No notifications found'); } - $fields = array('socid', 'fk_soc', 'fk_action', 'event', 'fk_contact', 'target', 'fk_user', 'datec', 'tms', 'email', 'threshold', 'context', 'type'); + $fields = array('socid', 'fk_soc', 'fk_action', 'event', 'fk_contact', 'target', 'datec', 'tms', 'type'); $returnNotifications = array();