revert wrong code in commonobject
This commit is contained in:
parent
4e2f929460
commit
5233ad7424
@ -8738,7 +8738,7 @@ abstract class CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
$sql = 'DELETE FROM '.MAIN_DB_PREFIX.$this->table_element.' WHERE '.$idFieldName.'='.$this->id;
|
$sql = 'DELETE FROM '.MAIN_DB_PREFIX.$this->table_element.' WHERE rowid='.$this->id;
|
||||||
|
|
||||||
$res = $this->db->query($sql);
|
$res = $this->db->query($sql);
|
||||||
if ($res === false) {
|
if ($res === false) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user