Fix: when cloning a website page, the page has the status draft.

This commit is contained in:
Laurent Destailleur 2022-03-24 15:42:01 +01:00
parent e9aab2188e
commit d91db3fe55

View File

@ -725,6 +725,7 @@ class WebsitePage extends CommonObject
$object->fk_website = $newwebsite;
}
$object->import_key = '';
$object->status = self::STATUS_DRAFT;
// Create clone
$object->context['createfromclone'] = 'createfromclone';