From 3df693738b3e866b63acb973e291e4e824dd70c1 Mon Sep 17 00:00:00 2001
From: Regis Houssin <regis@dolibarr.fr>
Date: Tue, 14 Feb 2012 21:19:00 +0800
Subject: [PATCH] Fix: missing entity

---
 htdocs/projet/class/project.class.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php
index 3d682c7ca37..3a911be8bbe 100644
--- a/htdocs/projet/class/project.class.php
+++ b/htdocs/projet/class/project.class.php
@@ -100,6 +100,7 @@ class Project extends CommonObject
         $sql.= ", datec";
         $sql.= ", dateo";
         $sql.= ", datee";
+        $sql.= ", entity";
         $sql.= ") VALUES (";
         $sql.= "'" . $this->db->escape($this->ref) . "'";
         $sql.= ", '" . $this->db->escape($this->title) . "'";
@@ -111,6 +112,7 @@ class Project extends CommonObject
         $sql.= ", " . ($this->datec != '' ? $this->db->idate($this->datec) : 'null');
         $sql.= ", " . ($this->dateo != '' ? $this->db->idate($this->dateo) : 'null');
         $sql.= ", " . ($this->datee != '' ? $this->db->idate($this->datee) : 'null');
+        $sql.= ", ".$conf->entity;
         $sql.= ")";
 
         dol_syslog("Project::create sql=" . $sql, LOG_DEBUG);
-- 
GitLab