From fbd3bd0a7688153acf1da77ea49e20e4cc1acd89 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 1 Jul 2009 23:57:30 +0000 Subject: [PATCH] Fix: Record was not found --- htdocs/comm/action/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index d736175b52e..c43fad1b3ee 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -222,7 +222,7 @@ $sql.= ', '.MAIN_DB_PREFIX.'c_actioncomm as ca'; $sql.= ', '.MAIN_DB_PREFIX.'user as u'; $sql.= ' WHERE a.fk_action = ca.id'; $sql.= ' AND a.fk_user_author = u.rowid'; -$sql.= ' AND u.entity = '.$conf->entity; +$sql.= ' AND u.entity in (0,'.$conf->entity.')'; if ($_GET["action"] == 'show_day') { $sql.= ' AND datep BETWEEN '.$db->idate(dol_mktime(0,0,0,$month,$_GET["day"],$year)); @@ -246,7 +246,7 @@ if ($status == 'done') { $sql.= " AND a.percent = 100"; } if ($status == 'todo') { $sql.= " AND a.percent < 100"; } // Sort on date $sql.= ' ORDER BY datep'; -//print $sql; +dol_syslog("comm/action/index.php sql=".$sql, LOG_DEBUG); $resql=$db->query($sql); if ($resql)