Update project.class.php

This commit is contained in:
Laurent Destailleur 2019-09-27 12:32:27 +02:00 committed by GitHub
parent b4f31d61fa
commit 2eaa910336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1691,7 +1691,8 @@ class Project extends CommonObject
$sql.= " WHERE id=".$elementSelectId;
}else
{
$sql.= sprintf(" SET %s=NULL WHERE rowid=%s", $projectfield, $elementSelectId);
$sql.= " SET ".$projectfield."=NULL";
$sql.= " WHERE rowid=".$elementSelectId;
}
dol_syslog(get_class($this)."::remove_element", LOG_DEBUG);