From 3b364652106369f8b74a0d320d009dd45f8d15cb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 6 Feb 2022 12:17:42 +0100 Subject: [PATCH] Fix missing allowed_in_frames --- htdocs/website/class/website.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/website/class/website.class.php b/htdocs/website/class/website.class.php index 396646ac40a..0e66e01db01 100644 --- a/htdocs/website/class/website.class.php +++ b/htdocs/website/class/website.class.php @@ -1031,7 +1031,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, image, keywords, status, date_creation, tms, import_key, grabbed_from, type_container, htmlheader, content, author_alias)'; + $line = 'INSERT INTO llx_website_page(rowid, fk_page, fk_website, pageurl, aliasalt, title, description, lang, image, keywords, status, date_creation, tms, import_key, grabbed_from, type_container, htmlheader, content, author_alias, allowed_in_frames)'; $line .= " VALUES("; $line .= $objectpageold->newid."__+MAX_llx_website_page__, "; @@ -1076,9 +1076,11 @@ class Website extends CommonObject $stringtoexport = str_replace('="image/'.$website->ref.'/', '="image/__WEBSITE_KEY__/', $stringtoexport); $line .= "'".$this->db->escape($stringtoexport)."', "; // Replace \r \n to have record on 1 line - $line .= "'".$this->db->escape($objectpageold->author_alias)."'"; + $line .= "'".$this->db->escape($objectpageold->author_alias)."', "; + $line .= "'".$this->db->escape($objectpageold->allowed_in_frames)."'"; $line .= ");"; $line .= "\n"; + fputs($fp, $line); // Add line to update home page id during import