Update commonobject.class.php
This commit is contained in:
parent
ae4020c9fe
commit
c3863aeed8
@ -5693,7 +5693,7 @@ abstract class CommonObject
|
||||
$linealreadyfound = 0;
|
||||
|
||||
// Check if there is already a line for this object (in most cases, it is, but sometimes it is not, for example when extra field has been created after), so we must keep this overload)
|
||||
$sql .= "SELECT COUNT(rowid) as nb FROM ".MAIN_DB_PREFIX.$this->table_element."_extrafields WHERE fk_object = ".$this->id;
|
||||
$sql = "SELECT COUNT(rowid) as nb FROM ".MAIN_DB_PREFIX.$this->table_element."_extrafields WHERE fk_object = ".$this->id;
|
||||
$resql = $this->db->query($sql);
|
||||
if ($resql) {
|
||||
$tmpobj = $this->db->fetch_object($resql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user