mirror of
https://github.com/standardebooks/web.git
synced 2025-07-17 11:56:38 -04:00
Set new projects for existing placeholders as 'in progress' when creating a project
This commit is contained in:
parent
aad37981ab
commit
a68826b54b
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ try{
|
||||||
if(!$project->Ebook->EbookPlaceholder?->IsInProgress){
|
if(!$project->Ebook->EbookPlaceholder?->IsInProgress){
|
||||||
$project->EbookId = $project->Ebook->EbookId;
|
$project->EbookId = $project->Ebook->EbookId;
|
||||||
$_SESSION['is-only-ebook-project-created'] = true;
|
$_SESSION['is-only-ebook-project-created'] = true;
|
||||||
|
|
||||||
|
// Set the placeholder to in progress.
|
||||||
|
$project->Ebook->EbookPlaceholder?->IsInProgress = true;
|
||||||
|
$project->Ebook->EbookPlaceholder?->Save();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// `Ebook` exists and it's not a placeholder, so really fail.
|
// `Ebook` exists and it's not a placeholder, so really fail.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue