Set new projects for existing placeholders as 'in progress' when creating a project

This commit is contained in:
Alex Cabal 2025-01-06 12:12:07 -06:00
parent aad37981ab
commit a68826b54b

View file

@ -41,6 +41,10 @@ try{
if(!$project->Ebook->EbookPlaceholder?->IsInProgress){
$project->EbookId = $project->Ebook->EbookId;
$_SESSION['is-only-ebook-project-created'] = true;
// Set the placeholder to in progress.
$project->Ebook->EbookPlaceholder?->IsInProgress = true;
$project->Ebook->EbookPlaceholder?->Save();
}
else{
// `Ebook` exists and it's not a placeholder, so really fail.