Fix duplicate field in insert
This commit is contained in:
parent
7909055ee8
commit
5243cee0b8
@ -994,7 +994,7 @@ class Website extends CommonObject
|
||||
fputs($fp, $line);
|
||||
|
||||
// Warning: We must keep llx_ here. It is a generic SQL.
|
||||
$line = 'INSERT INTO llx_website_page(rowid, fk_page, fk_website, pageurl, aliasalt, title, description, lang, otherlang, image, keywords, status, date_creation, tms, lang, import_key, grabbed_from, type_container, htmlheader, content)';
|
||||
$line = 'INSERT INTO llx_website_page(rowid, fk_page, fk_website, pageurl, aliasalt, title, description, lang, otherlang, image, keywords, status, date_creation, tms, import_key, grabbed_from, type_container, htmlheader, content)';
|
||||
|
||||
$line .= " VALUES(";
|
||||
$line .= $objectpageold->newid."__+MAX_llx_website_page__, ";
|
||||
@ -1011,7 +1011,6 @@ class Website extends CommonObject
|
||||
$line .= "'".$this->db->escape($objectpageold->status)."', ";
|
||||
$line .= "'".$this->db->idate($objectpageold->date_creation)."', ";
|
||||
$line .= "'".$this->db->idate($objectpageold->date_modification)."', ";
|
||||
$line .= "'".$this->db->escape($objectpageold->lang)."', ";
|
||||
$line .= ($objectpageold->import_key ? "'".$this->db->escape($objectpageold->import_key)."'" : "null").", ";
|
||||
$line .= "'".$this->db->escape($objectpageold->grabbed_from)."', ";
|
||||
$line .= "'".$this->db->escape($objectpageold->type_container)."', ";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user