Skip to content
Snippets Groups Projects
Commit 9549c0c6 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: entity filter

parent 5cf59a13
No related tags found
No related merge requests found
...@@ -97,7 +97,7 @@ class Notify ...@@ -97,7 +97,7 @@ class Notify
$sql.= " AND n.fk_soc = s.rowid"; $sql.= " AND n.fk_soc = s.rowid";
if (is_numeric($action)) $sql.= " AND n.fk_action = ".$action; // Old usage if (is_numeric($action)) $sql.= " AND n.fk_action = ".$action; // Old usage
else $sql.= " AND a.code = '".$action."'"; // New usage else $sql.= " AND a.code = '".$action."'"; // New usage
//$sql.= " AND n.entity = ".$conf->entity; $sql.= " AND s.entity = ".$conf->entity;
$sql.= " AND s.rowid = ".$socid; $sql.= " AND s.rowid = ".$socid;
dol_syslog("Notify.class::countDefinedNotifications ".$action.", ".$socid." sql=".$sql); dol_syslog("Notify.class::countDefinedNotifications ".$action.", ".$socid." sql=".$sql);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment