we do not use these fields which are null anyway
This commit is contained in:
parent
5970524872
commit
f10fd0cbc0
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue