2
0
forked from Wavyzz/dolibarr

Fix: refactoring elements sharing management between entities

This commit is contained in:
Regis Houssin
2012-01-10 06:57:44 +08:00
parent 4eb88be3b6
commit 376759c13d
4 changed files with 18 additions and 22 deletions

View File

@@ -463,7 +463,7 @@ function dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $not
$sql = "DELETE FROM ".MAIN_DB_PREFIX."const";
$sql.= " WHERE name = ".$db->encrypt($name,1);
if ($entity > 0) $sql.= " AND entity = ".$entity;
if ($entity >= 0) $sql.= " AND entity = ".$entity;
dol_syslog("admin.lib::dolibarr_set_const sql=".$sql, LOG_DEBUG);
$resql=$db->query($sql);