From 1f0ce3cd9a9801734f678e40785be6eec54e18ec Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 18 Jun 2011 08:42:18 +0000 Subject: [PATCH] Fix: Pgsql compatibility --- htdocs/core/class/html.formactions.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formactions.class.php b/htdocs/core/class/html.formactions.class.php index 881a0bcd61d..377d3247c6d 100644 --- a/htdocs/core/class/html.formactions.class.php +++ b/htdocs/core/class/html.formactions.class.php @@ -110,7 +110,7 @@ class FormActions $sql.= ' WHERE a.fk_user_author = u.rowid'; if ($socid) $sql .= ' AND a.fk_soc = '.$socid; if ($typeelement == 'project') $sql.= ' AND a.fk_project = '.$object->id; - else $sql.= ' AND a.fk_element = '.$object->id.' AND a.elementtype = "'.$typeelement.'"'; + else $sql.= " AND a.fk_element = ".$object->id." AND a.elementtype = '".$typeelement."'"; dol_syslog("FormActions::showactions sql=".$sql); $resql = $this->db->query($sql);