diff --git a/htdocs/website/class/websitepage.class.php b/htdocs/website/class/websitepage.class.php index fd7a217c30e..9b4fe24dbc3 100644 --- a/htdocs/website/class/websitepage.class.php +++ b/htdocs/website/class/websitepage.class.php @@ -868,7 +868,7 @@ class WebsitePage extends CommonObject $now = dol_now(); - $this->fk_website = ''; + $this->fk_website = 0; $this->type_container = 'page'; $this->pageurl = 'specimen'; $this->aliasalt = 'specimenalt'; @@ -879,7 +879,7 @@ class WebsitePage extends CommonObject $this->allowed_in_frames = 1; $this->htmlheader = ''; $this->content = 'This is a html content'; - $this->status = ''; + $this->status = self::STATUS_DRAFT; $this->grabbed_from = ''; $this->date_creation = $now - (24 * 30 * 3600); $this->date_modification = $now - (24 * 7 * 3600);