Fix bad table
This commit is contained in:
parent
0d07ad8c69
commit
c210b2349d
@ -472,12 +472,10 @@ class Account extends CommonObject
|
|||||||
if ($accline->insert() > 0) {
|
if ($accline->insert() > 0) {
|
||||||
|
|
||||||
if ($categorie) {
|
if ($categorie) {
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."bank_class (";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."categorie_account (";
|
||||||
$sql .= "lineid";
|
$sql .= "fk_account, fk_categorie";
|
||||||
$sql .= ", fk_categ";
|
|
||||||
$sql .= ") VALUES (";
|
$sql .= ") VALUES (";
|
||||||
$sql .= "'".$accline->id."'";
|
$sql .= " ".$accline->id.", ".$categorie;
|
||||||
$sql .= ", '".$categorie."'";
|
|
||||||
$sql .= ")";
|
$sql .= ")";
|
||||||
|
|
||||||
$result = $this->db->query($sql);
|
$result = $this->db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user